https://github.com/devdrops/php-server
A Docker image that provides the usage for PHP built-in server.
https://github.com/devdrops/php-server
docker php php-server
Last synced: 3 months ago
JSON representation
A Docker image that provides the usage for PHP built-in server.
- Host: GitHub
- URL: https://github.com/devdrops/php-server
- Owner: devdrops
- License: gpl-3.0
- Created: 2019-03-29T03:24:56.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-31T12:47:54.000Z (about 6 years ago)
- Last Synced: 2025-02-05T20:30:53.065Z (5 months ago)
- Topics: docker, php, php-server
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/devdrops/php-server
- Size: 13.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Built-in Server
[](https://microbadger.com/images/devdrops/php-server "Get your own image badge on microbadger.com") [](https://microbadger.com/images/devdrops/php-server "Get your own version badge on microbadger.com") [](https://microbadger.com/images/devdrops/php-server "Get your own commit badge on microbadger.com")
A Docker image that provides the usage for PHP built-in server. Available at [Docker Hub](https://hub.docker.com/r/devdrops/php-server).
## How to Use?
1. Add the image to your project.
2. Run the following:```bash
docker run -ti \
-v $(pwd):/code \
-w /code \
-p 8080:8080 \
devdrops/php-server:latest \
php -S 0.0.0.0:8080
```3. You can access the project content at `http://0.0.0.0:8080/` on the host machine.