An opinionated dev container for PHP development with VS Code
Go to ./src then run the following command:
./hello.php
Got to ./src then rune the following command to start the the development server:
php -S localhost:3000
Then point the browser to localhost:3000
.
You need the following prerequisites on your computer:
- VS Code
- Docker Desktop (MacOS, Windows) or docker engine (Linux)
- VS Code extension for remote development
- git client
With this setup VS Code will suggest re-opening in the dev container when you open the repo's local clone's directory in VS Code.
Other setups may work as well but were not considered for this sample repository.