Clean, simple, and modern PHP boilerplate with Docker support, testing, and development tools.
You can run this project using either Docker (via Make commands) or Nix. Choose the option that best fits your workflow.
- Docker and Docker Compose
- Make (for Windows: install from here)
If you have problems with permissions please add sudo before make example:
sudo make installsudo make start
make install
make startmake install
make starthttp://localhost:8000
make help- Show all available commands
# Enter the Nix shell (automatically installs all dependencies)
nix-shell# Enter Nix shell
nix-shell
# Check PHP version and path
type php
php --version
# Install PHP dependencies
composer install
# Start development server
php -S localhost:8000 -t public/
# Run tests
composer test
# Code quality checks
composer phpstan
composer cs-fixmake help
# Run all tests
composer test
The boilerplate includes several code quality tools:
- PHPStan - Static analysis tool
- PHP-CS-Fixer - Code style fixer
- PHPUnit - Testing framework
# Using PHP built-in server
php -S localhost:8000 -t public/# Install dependencies
composer install
# Update dependencies
composer update
# Add new dependency
composer require vendor/package
# Add development dependency
composer require --dev vendor/packageLearn more about the tools used in this boilerplate: