Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>PHP-enabled Live Local ServerNew to Visual Studio Code? Get it now.
PHP-enabled Live Local Server

PHP-enabled Live Local Server

T-myk

|
237 installs
| (1) | Free
A VSCode extension to serve PHP projects locally with a live server.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PHP-enabled Live Local Server VSCode Extension

Serve your PHP projects with a live server directly from VSCode.

Usage Demo

Features

  • Start and stop a PHP server.
  • View your PHP project live in the browser.
  • Hot reload the browser when you change php, html, css, or js files.
  • (More features to come)

Usage

There are several ways to start or stop the server:

  1. From the Status Bar:

    • Click the ▶︎ Start PHP Server button in the status bar at the bottom-right of your VSCode window.
    • When the server is running, the button will change to ⏹ Stop PHP Server. Click it again to stop the server.
  2. From the Command Palette:

    • Open the Command Palette (Cmd+Shift+P on macOS, Ctrl+Shift+P on Windows/Linux).
    • Type Start/Stop PHP Live Server and press Enter.
  3. From the Context Menu:

    • Right-click on a .php file in the Explorer view.
    • Or, right-click inside a .php editor.
    • Select Start/Stop PHP Live Server from the context menu.

Requirements

Note: This extension requires PHP to be installed on your system. It will try to find it automatically, but if it fails, you may need to set the path to your PHP executable in the extension settings.

  • PHP installed on your system.
  • The extension will attempt to automatically find your PHP installation. If it cannot, you will need to set the php-live-server.phpPath setting.

Extension Settings

This extension contributes the following settings:

  • php-live-server.port: Port number for the PHP server (default: 3000).
  • php-live-server.host: Hostname for the PHP server (default: localhost).
  • php-live-server.root: Root directory for the PHP server (default: workspace root).
  • php-live-server.phpPath: Custom path to the PHP executable (e.g., /usr/bin/php or C:\\php\\php.exe). Defaults to php, which requires PHP to be in your system's PATH.

Release Notes

0.0.1

Initial release of the PHP-enabled Live Local Server extension.

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft