Skip to content
/ dev-container-php Public template

An opinionated dev container for PHP and VS Code

License

Notifications You must be signed in to change notification settings

RimuTec/dev-container-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dev-container-php

An opinionated dev container for PHP development with VS Code

Run PHP as Script

Go to ./src then run the following command:

./hello.php

Run PHP from Web Server

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.

Prerequisites

You need the following prerequisites on your computer:

  1. VS Code
  2. Docker Desktop (MacOS, Windows) or docker engine (Linux)
  3. VS Code extension for remote development
  4. 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.

Releases

No releases published

Packages

No packages published