Host/Serve current workspace (or subfolder) with PHP.
You can execute it with:
-Ctrl+shift+P and searching for "Serve Project with PHP"
-Clicking on the editor's button (right superior corner)
-Right-clicking on the editor.
To stop the server just search for "Stop PHP Server" or right-click on the editor.
Now with Windows support, auto open localhost in browser.
PHP installed.
This extension contributes the following settings:
phpserver.port
: Localhost port where server will be hosted (Default: 3000)phpserver.relativeurl
: URL relative to workspace path, in case you want only host a subfolder of workspace (Default: "")phpserver.browser
: Browser's name that will be opened when server starts, if value='' then no browser will be opened (Default: "firefox", Options: "chrome, firefox, ''").phpserver.external
: The server is accessible from any interface of your machine, wired or wireless, will bind to all available IP addresses on the system.
Code rewritten (almost):
+Windows support.
+Auto open localhost in browser (optional).
+Added context menu commands.
+Fixed problem with relative url.
Initial release of PHP Server
Enjoy!