Skip to main content

One post tagged with "cqrs"

View All Tags

Building a Domain-Driven Design Architecture with BowPHP

· 6 min read
Franck DAKIA
Principal maintainer

BowPHP ships with a clean MVC layout, but nothing stops you from organising a larger application around Domain-Driven Design (DDD). The framework already gives you the three pieces DDD leans on: a container to bind interfaces to implementations, CQRS to model use-cases, and an event system to publish domain events. In this post we'll wire them together into a layered, testable architecture.

We'll model a single bounded context — Ordering — and keep the domain at the centre, framework details at the edges.