Domain-driven design with API Platform 3
summary
Project shows a hexagonal layout with Domain/Application/Infrastructure folders, separates rich domain models from API resources, and implements use cases with plain PHP queries and commands (example: FindCheapestBooksQuery -> handler -> provider for URL /books/cheapest). Writes use cases via a processor that dispatches a DiscountBookCommand and then maps domain entities back to API resources. Notes that API Platform 3 lets operations reference provider/processor classes directly and that simple subscription CRUD stays RAD in its own bounded context.
AI-written summary · about
