"PHP Starter Kit" is a blank preconfigured docker template for building PHP applications.
The starter kit is built on the latest stable version of PHP and includes all the necessary extensions and libraries to get you started. 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. With this starter kit, developers can focus on writing code and not worry about the underlying setup.
Key aspects of the starter kit:
- The Docker image is based on latest php-fpm-alpine with NGINX (using UNIX sockets).
- Minimal image size while still providing all the necessary tools and extensions (~65 MB).
- Dedicated network
apps
for local development. - SSL (HTTP/2) for localhost
- Makefile for easy management of the Docker container.
- 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 rebuild:
rebuild docker imagemake up:
Docker compose up -dmake down:
Docker compose downmake logs:
Show logsmake sh:
docker exec -it /bin/bashmake 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.