https://github.com/sarthakpranesh/php_development_env
My Docker based PHP development environment
https://github.com/sarthakpranesh/php_development_env
apache docker docker-compose mysql php7
Last synced: 2 months ago
JSON representation
My Docker based PHP development environment
- Host: GitHub
- URL: https://github.com/sarthakpranesh/php_development_env
- Owner: sarthakpranesh
- License: mit
- Created: 2020-09-12T15:13:41.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-09-16T12:46:57.000Z (almost 6 years ago)
- Last Synced: 2025-02-26T22:27:50.045Z (over 1 year ago)
- Topics: apache, docker, docker-compose, mysql, php7
- Language: PHP
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP_Development_Env
## Why use this
When I started to learn php, the development env setup really bugged me and I had to spend days properly creating the php environment that I could use satisfyingly. Soon my local mysql server got messed up and my linux system crashed (a few random commands later) soon after. So I created this docker env after reading random blog posts and documentations to help me have a consistent php development environment.
The docker environment runs php:7.4-apache, mysql server and adminer for database management.
## How to use
Make sure you have docker and docker-compose installed
* `bash ./start_server.sh` - this will build the Dockerfile and then use the build image for docker-compose command
* All mysql database changes will be persistent and will be stored locally in your project root directory
* If you want to add more plugins or modify the php-apache image you can open the Dockerfile and do so, one plugin (mysqli) is already added
* All your php code should be inside the src folder
* URL for Adminer - [http://localhost:8080](http://localhost:8080)
* URL for PHP server - [http://localhost:9090/](http://localhost:9090/)
* `Ctrl + c` - will stop all containers gracefully and exit
## Found something broken
If you find something broken or not working feel free to open an Issue
##### Made with ❤️