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

|
115 installs
| (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 Diagrams: PlantUML, Graphviz & D2 Preview: PlantUML, Graphviz (DOT) and D2 diagrams rendered on your machine: live preview beside the editor, SVG and PNG export, diagrams in the Markdown preview, errors in Problems. No server needed. (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 Nginx: nginx.conf Formatting & IntelliSense: nginx config support: syntax highlighting, formatting, directive completion and docs on hover, context checks, and snippets for reverse proxies, SSL and PHP. (Open VSX)
  • Nifty PHP Quality: PHPStan, PHPCS & Pint: PHPStan, PHP_CodeSniffer, Laravel Pint and PHP-CS-Fixer in one extension: problems as you save, one Fix command, and zero setup when the tools are in your project's vendor/bin. (Open VSX)
  • Nifty .NET Explorer: Solution & Test Explorer: A solution explorer and test explorer for .NET in VS Code, Cursor, Windsurf and VSCodium: projects, references and files from .sln/.slnx, and xUnit, NUnit and MSTest tests in the Testing view. (Open VSX)

See all 100+ Nifty extensions and web tools at https://getnifty.dev

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