Skip to content

PHP development environment and project skeleton with docker.

Notifications You must be signed in to change notification settings

Farid-NL/php-docker

Repository files navigation


Logo

PHP Skeleton

PHP development environment and project skeleton with docker.


Contributors Forks Issues License

Table Of Contents

About The Project

This repository tries to facilitate the setup of the development environment of PHP applications that doesn't require a framework.

Prerequisites

You'll need Docker, whether the desktop version or the engine.

Follow the instructions of your OS

Usage

  1. Clone the repo in the desired directory

    cd my-dev-dir/php-projects
    git clone git@github.com:Farid-NL/php-docker.git
  2. Make a copy of .env.example called .env

    cp .env.example .env
  3. 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

TODOs

  • Explain how to add (modify) php and apache configurations
  • Add a gif/video demo
  • Make another branch for just apache + php skeleton

About

PHP development environment and project skeleton with docker.

Resources

Stars

Watchers

Forks