This is a skeleton to quickly set up a new Slim 4 application.
- PHP 7.4+ or 8.0+
- MySQL 5.7+ or MariaDB
- Apache with mod_rewrite
- Apache Ant to build deployment artifacts
composer create-project odan/slim4-skeleton my-app
Read more: Documentation
This project is based on best practices and industry standards:
- Standard PHP package skeleton
- HTTP message interfaces (PSR-7)
- HTTP Server Request Handlers, Middleware (PSR-15)
- HTTP factories (PSR-17)
- HTTP router and dispatcher (Slim)
- Dependency injection container (PSR-11)
- Autoloading (PSR-4)
- Logging (PSR-3)
- Code styles (PSR-12)
- PHPDoc standard (PSR-5, PSR-19)
- Single action controllers
- Input validation
- SQL Query Builder
- Database migrations
- Immutable date time (Chronos)
- Unit- and integration tests
- Console Commands
- Tested with Github Actions and Scrutinizer CI
- PHPStan (Level: max)
- Build and deployment scripts
- Docker container with Xdebug support
- Swagger OpenAPI documentation
You can clone this project to modify it as you wish to create awesome API's and web applications.
Read more: Documentation
Please create an issue first, so we can discuss it in advance.
The MIT License (MIT). Please see License File for more information.