"PHP Starter Kit" is a blank PHP application template that includes a Docker image pre-configured with PHP-FPM, Nginx(DEV), Composer, Opcache with JIT, SSL for local developent.
The Docker image provides a consistent and reproducible environment, which is particularly useful when working with a team of developers or deploying to production. With this starter kit, developers can focus on writing code and not worry about the underlying setup.
The starter kit is built on the latest stable version of PHP and includes all the necessary extensions and libraries to get you going. This repository is intended to be a starting point for new projects and can be easily customized to fit the specific needs of your project.
- Clone the repository: git clone https://github.com/rdurica/php_starter_kit.git
- Build the Docker image, ssl certificates:
make init
- Access the application in your browser at https://localhost
After initial instalation you can use these commands:
- make buildimage: rebuild docker image
- make up: Docker compose up -d
- make down: Docker compose down
- make logs: Show logs
- make sh: docker exec -it /bin/bash
- make manifest app_name=<$name>: Generate example manifest for k8s. (for example make manifest app_name=app1).
By default nginx pointing to /src/public
folder.
If you would like to contribute to this project, please fork the repository and create a pull request. We welcome all contributions, including bug fixes, new features, and documentation improvements.
This project is licensed under the terms of the MIT license.