Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Nifty PHP Server: Built-in PHP Web ServerNew to Visual Studio Code? Get it now.
Nifty PHP Server: Built-in PHP Web Server

Nifty PHP Server: Built-in PHP Web Server

Nifty

|
1 install
| (0) | Free
Serve a folder with PHP's built-in web server in one click, see requests live, and open pages in your browser.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Nifty PHP Server

Serve a folder with PHP's built-in web server in one click, see requests live, and open pages in your browser.

Maintained. No sign-in. No telemetry. Works in VS Code, Cursor, Windsurf, VSCodium and other editors that use Open VSX.

Features

Serve Project starts PHP on localhost:3000, the status bar shows the server and the recipe site opens

A PHP site served on localhost:3000, with the server in the status bar

The request log with a 404 marked

  • Serve Project. Starts php -S for your workspace (or right-click any folder in the Explorer) and opens it in your browser.
  • Open in Browser. Right-click a .php or .html file, or click the globe in the editor title, to open that page. The server starts if it isn't running.
  • Always a free port. If port 3000 (or your chosen port) is busy, the next free one is used.
  • Status bar control. Shows PHP :3000 while running; click it to open, copy the URL, view the request log, restart or stop.
  • Request log in the PHP Server output, with failing requests (4xx/5xx) marked.
  • Front controllers. Set a router script (e.g. index.php) for Laravel, Slim or other apps that route every URL through one file.
  • Errors visible while developing. display_errors and E_ALL are on by default (change with iniOverrides).
  • Finds PHP for you: on your PATH, XAMPP, WAMP or Homebrew, or set phpPath.

Commands

Command What it does
Nifty PHP Server: Serve Project Start the server and open the site
Nifty PHP Server: Open in Browser Open the current file's page
Nifty PHP Server: Server Options… Open, copy URL, log, restart, stop
Nifty PHP Server: Restart Server / Stop Server

Settings

Setting Default What it does
nifty.php-server.phpPath (empty) Path to php; empty means find it
nifty.php-server.port 3000 Preferred port
nifty.php-server.host localhost Use 0.0.0.0 to open it to your network
nifty.php-server.docroot (empty) Document root, e.g. public
nifty.php-server.router (empty) Router script, e.g. index.php
nifty.php-server.iniOverrides display_errors=1, error_reporting=E_ALL php.ini settings passed with -d
nifty.php-server.openBrowser true Open the browser on start
nifty.php-server.showInStatusBar true Show the server in the status bar

PHP's built-in server is for development only; don't use it in production.

Install

  • VS Code: search for "Nifty PHP Server" in the Extensions view, or install from the Visual Studio Marketplace.
  • Cursor, Windsurf, VSCodium, Kiro, Antigravity: install from Open VSX.

Privacy

This extension collects no telemetry, needs no account and makes no network requests. The server listens on your machine only (unless you set the host to 0.0.0.0).

More Nifty tools

  • Nifty Beautify: Format HTML in PHP, Blade & Twig: Format HTML inside PHP, Blade, Twig, Jinja, Handlebars, ERB and Liquid templates without breaking the template tags. (Open VSX)
  • Nifty Mermaid: Mermaid Diagram Preview & Export: Mermaid diagrams with no account: live preview beside .mmd files and Markdown, diagrams in the Markdown preview, syntax highlighting, and export to SVG or PNG. (Open VSX)
  • Nifty C# Templates: New Class, Record & Namespace: New C# class, interface, record, enum, test and controller files with the right namespace, plus namespace syncing. (Open VSX)
  • Nifty Data Viewer: CSV & Parquet Viewer with SQL: Open CSV, Parquet and JSON files as a fast table and query them with SQL, powered by DuckDB. Sort, page through millions of rows, and export to CSV, Parquet or JSON. (Open VSX)
  • Nifty Docs: Dash, Zeal & DevDocs Lookup: Look up the word under the cursor in Dash, Zeal or DevDocs, with docsets picked from your language and frameworks. (Open VSX)
  • Nifty Git Graph: Git History & Branch Graph: See your git history as a graph: branches, merges and tags, commit details and diffs, and checkout, merge, rebase, cherry-pick and more from a right-click. No sign-in. (Open VSX)

See all 21 Nifty tools at https://getnifty.dev

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft