Template to start quickly a PHP project with Visual Studio Code running inside a Docker container.
Everything is configured to use Xdebug integrated to Visual Studio Code. Xdebug provides a range of features to improve the PHP development experience.
In particular, you will be able to use the breakpoint in debug mode.
The following elements will be installed inside the container :
- PHP
- The open-source Apache HTTP Server
- Xdebug
The following VSC extension will be automatically installed :
Additionally, the installation of some recommended VSC extensions will be purposed when the container will be started for the first time.
- PHP Intelephense by Ben Mewburn : https://marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client
Don't hesitate to look the Microsoft training to discover the dev container with VSC :
And more information :
- https://containers.dev/
- https://code.visualstudio.com/docs/devcontainers/containers
- https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers
Enjoy !