Description:
This repository serves as a comprehensive template for kickstarting PHP web development projects using Docker, Alpine Linux, Nginx, and MySQL. It includes a sample application built on the Fat-Free Framework (F3) and HTMX for dynamic, seamless user experiences. With Docker-based environment setup, developers can quickly spin up a local development environment that mirrors production, ensuring consistency and ease of deployment. This boilerplate provides a solid foundation for building robust and scalable PHP applications with minimal setup overhead.
Key Features:
- Docker-based environment for easy setup and deployment
- Alpine Linux for lightweight and efficient containerization
- Nginx as the web server for fast and reliable serving of PHP applications
- MySQL database included for local development and testing
- Fat-Free Framework (F3) utilized for rapid development of PHP applications
- HTMX integrated for AJAX-driven, client-side interactions without sacrificing server-side simplicity
- Traefik proxy for local development.
- Local PHPMyAdmin database administration interface.
- Chadburn job scheduling.
- Added Foundation for Sites
Usage:
- Clone the repository to your local machine.
- Navigate to the project directory.
- Run
docker-compose up
to start the development environment. - Access the sample application at
http://localhost
. - Access the database via PHPMyAdmin at
https://phpmyadmin.localhost
.
Notes:
- Ensure Docker and Docker Compose are installed on your system.
- Modify the sample application or replace it with your own code to suit your project requirements.
- Refer to the provided documentation for detailed configuration options and customization guidelines.
- Make use of Composer to manage your PHP dependencies. Default composer.json preconfigured to set vendor/ directory inside public_html/
Deployment
- Deployments guides coming soon.