Download the PHP package rekalogika/api-lite without Composer
On this page you can find all versions of the php package rekalogika/api-lite. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rekalogika/api-lite
More information about rekalogika/api-lite
Files in rekalogika/api-lite
Package api-lite
Short Description A set of tools to simplify working with API Platform in your projects. Comes with guides, patterns, and practical examples for building API Platform-based projects.
License MIT
Homepage https://rekalogika.dev/api-lite
Informations about the package api-lite
rekalogika/api-lite
A set of tools to simplify working with API Platform in your projects. Comes with guides, patterns, and practical examples for building API Platform-based projects.
Apply existing knowledge, experience, and patterns of working with Symfony controllers to API Platform state providers and processors. Decouple your persistence layer from the API frontend layer. Apply Domain-Driven Design (DDD) principles to your API Platform-based projects, as well as other architectural patterns and best practices, including SOLID, onion architecture, clean architecture, hexagonal architecture, and others.
'Lite' means we are refraining from using all of API Platform's features and automations in favor of better readability, simplicity, and flexibility.
Full documentation is available at rekalogika.dev/api-lite.
Motivation
API Platform documentation encourages developers to use plain old PHP objects (POPOs) or data transfer objects (DTOs) as the models for API communication, instead of using domain entities directly for this purpose. But it does not establish a practical working patterns for that approach.
Practically all the examples and demos we find on the Internet still
attach ApiResource
to Doctrine entities.
Sometimes API Platform can feel very rigid. It can be difficult to figure out how to accomplish things outside its conventions. There are ways around any problem, just not always immediately obvious. It can feel like that we just want to express what we need by writing a PHP code, not by figuring out the correct combination of attributes to use.
Those coming from Symfony controllers might find API Platform's approach very different, but it does not have to be.
Installation
Synopsis
To-Do List
- Figure out & implement filtering.
Documentation
License
MIT
All versions of api-lite with dependencies
api-platform/core Version ^3.2.12 || ^3.3 || ^4.0
doctrine/collections Version ^2.2
rekalogika/mapper Version ^1.13.3 || ^1.14
rekalogika/rekapager-api-platform Version ^0.22
rekalogika/rekapager-doctrine-collections-adapter Version ^0.22
rekalogika/rekapager-doctrine-orm-adapter Version ^0.22
symfony/dependency-injection Version ^6.4 || ^7.0
symfony/http-kernel Version ^6.4 || ^7.0
symfony/security-core Version ^6.4 || ^7.0
symfony/service-contracts Version ^3.4