A modern, production-ready PHP backend base template for pet projects with Docker, quality tools, and CI/CD.
- Clone the repository
make setupmake up- Check http://localhost:8000
.
├── .github/
│ └── workflows/ # GitHub Actions CI/CD
│ ├── ci.yml # Tests and quality checks
│ └── deploy.yml # Deployment workflow
├── docker/
│ ├── caddy/
│ │ └── Caddyfile # Caddy configuration
│ └── php/
│ ├── Dockerfile # PHP container
│ ├── php.ini # Development PHP config
│ ├── php-prod.ini # Production PHP config
│ └── xdebug.ini # Xdebug configuration
├── public/
│ └── index.php # Application entry point
├── src/
│ └── Application.php # Main application
├── tests/
│ ├── bootstrap.php # Test bootstrap
│ ├── Unit/ # Unit tests
│ └── Integration/ # Integration tests
├── var/
│ ├── cache/ # Cache files
│ └── logs/ # Application logs
├── .env.example # Environment variables template
├── .gitignore
├── .php-cs-fixer.php # PHP CS Fixer configuration
├── composer.json # PHP dependencies
├── docker-compose.yml # Docker services
├── Makefile # Development commands
├── phpunit.xml # PHPUnit configuration
├── psalm.xml # Psalm configuration
└── README.md