1.4 KiB
1.4 KiB
Symfony 6.0
implementation on PHP 8.1
that supports PHP 8 attributes. I excluded the usage of API Platform here, which is a very powerful API crud generator but really not well suited for real customized API in my taste.
Contrary to Laravel, the usage of DataMapper pattern ORM involve classic POPO models. The additional usage of plain PHP DTO classes facilitates the OpenAPI spec models generation without writing all schemas by hand. On the downside the Nelmio package is far more verbose than the Laravel OpenAPI version.
Main packages involved :
- Doctrine as DataMapper ORM
- SensioFrameworkExtraBundle for ParamConverter helper with Doctrine
- FOSRestBundle only for some helpers as DTO automatic converters and validation
- NelmioApiDocBundle as OpenAPI generator
- Symfony JWT Bundle implementation
- Alice as fixtures generator that relies on PHP Faker
- PHP CS Fixer as formatter
- PHPStan, as advanced code static analyzer
- PHPUnit as test framework