Skip to content

Batteries included docker template for building PHP applications

Notifications You must be signed in to change notification settings

rdurica/php_starter_kit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Starter Kit

PHP Docker composer

php8

"PHP Starter Kit" is a blank preconfigured docker template for building PHP applications.

Overview

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.

Getting Started

  1. Clone the repository: git clone https://github.com/rdurica/php_starter_kit.git
  2. Build the Docker image, ssl certificates: make init
  3. Access the application in your browser at https://localhost

After initial instalation you can use these commands:

  • make rebuild: 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.

Contributing

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.

License

This project is licensed under the terms of the MIT license.

About

Batteries included docker template for building PHP applications

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published