Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rimutec/dev-container-php
An opinionated dev container for PHP and VS Code
https://github.com/rimutec/dev-container-php
docker docker-compose php template-repository
Last synced: about 13 hours ago
JSON representation
An opinionated dev container for PHP and VS Code
- Host: GitHub
- URL: https://github.com/rimutec/dev-container-php
- Owner: RimuTec
- License: mit
- Created: 2022-01-16T19:58:59.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-22T04:26:24.000Z (over 1 year ago)
- Last Synced: 2024-01-17T00:16:36.253Z (about 1 year ago)
- Topics: docker, docker-compose, php, template-repository
- Language: Dockerfile
- Homepage:
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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:
```bash
./hello.php
```## Run PHP from Web Server
Got to ./src then rune the following command to start the the development server:
```bash
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 clientWith 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.