Skip to content

Latest commit

 

History

History
82 lines (56 loc) · 1.97 KB

README.md

File metadata and controls

82 lines (56 loc) · 1.97 KB

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