PHP Server Extension VS Code
- First, install PHP itself
- Install the PHP server extension.
- Add this code to your settings.json vscode:
"php.validate.executablePath": "C:\\php",
"phpserver.phpPath": "C:\\php\\php.exe",
"phpserver.port": 3025
caution
Notice the double backslash in the above paths. It is important.
tip
Port: 3000 by default.