PHP development environment and project skeleton with docker.
This repository tries to facilitate the setup of the development environment of PHP applications that doesn't require a framework.
You'll need Docker, whether the desktop version or the engine.
Follow the instructions of your OS
-
Clone the repo in the desired directory
cd my-dev-dir/php-projects git clone git@github.com:Farid-NL/php-docker.git
-
Make a copy of
.env.example
called.env
cp .env.example .env
-
Run the containers
# Run on terminal docker compose up # Run in detached mode docker compose up -d
You can run commands inside the container with the help of dev
script
# Show help message with command examples
./dev help
# Install composer packages
./dev composer install
- Explain how to add (modify) php and apache configurations
- Add a gif/video demo
- Make another branch for just apache + php skeleton