Auniik / php-skeleton

Minimal PHP Skeleton

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SKELETON

This is a simple PHP project skeleton that uses Docker and Nginx as the web server.

Requirements

  • Docker
  • Docker Compose

Installation

  1. Clone this repository to your local machine
  2. Open a terminal and navigate to the root of the project
  3. Run the following command to build the Docker images:
docker-compose build

Start the Docker containers:

docker-compose up -d

Connect to the PHP container:

docker-compose exec php bash

Install the project dependencies using Composer:

composer install

Usage

To access the project, open your web browser and go to http://localhost:8099/hello.

Troubleshooting

If you encounter any issues with the project, try the following steps:

  • Check the Docker logs for any errors:
docker-compose logs

About

Minimal PHP Skeleton


Languages

Language:PHP 95.0%Language:Dockerfile 4.9%Language:Shell 0.1%