At Les-Tilleuls.coop, we like to use API Platform. Mainly because it addresses a lot of questions about web API design, but also for its ease of use.
However this simplicity may come with a cost that is generally felt as the domain grows.
Fact is that at Les-Tilleuls.coop we also enjoy working on applications with strong business constraints, and even more to get off the rails.
And when appropriate, we do so based on the DDD principles.
Hexagonal message-oriented architecture, business logic decoupled from the infrastructure, … So many precepts that become prerequisites when it comes to putting the business at the center of our applications while ensuring their good maintainability.
But wouldn't all this go against what a RAD-oriented framework such as API Platform offers?
Can we really decouple our business logic from this framework via DDD-related techniques without losing its interest?
The answer is yes, and even more elegantly with API Platform v3.