Awesome Skeleton for modern development on PHP 7.3+
Installation
composer create-project 'sunrise/awesome-skeleton:^3.0' app
Run CLI
including: Doctrine DBAL, Doctrine ORM, Doctrine Migrations.
php bin/app
Run via PHP
listen 0.0.0.0:3000
composer serve
Run via RoadRunner
listen 0.0.0.0:3000
rr -dv serve
Run tests
composer test
Run benchmarks
composer bench
Useful commands
Generate Systemd unit file for RoadRunner
php bin/app app:roadrunner:generate-systemd-unit > app.service
Generate OpenApi document
php bin/app app:openapi:generate-documentation --pretty > openapi.json
Used stack
- https://github.com/PHP-DI/PHP-DI
- https://github.com/Seldaek/monolog
- https://github.com/sunrise-php/http-router
- https://github.com/doctrine/orm
- https://github.com/doctrine/migrations
- https://github.com/symfony/console
- https://github.com/symfony/validator
- https://github.com/neomerx/cors-psr7
- https://github.com/justinrainbow/json-schema
- https://github.com/filp/whoops
- https://github.com/twigphp/Twig
Used technology
RoadRunner
OpenApi (Swagger) specification
- https://swagger.io/docs/specification/about/
- https://github.com/OAI/OpenAPI-Specification/blob/master/versions/3.0.2.md
Json Schema specification
It may be useful to you
Awesome middlewares for your application
with :heart: for you