CQRS in PHP is a simple project (a folder structure) for your project build with Domain Driven Design.
The recomanded way to install CQRS in PHP is through Composer:
{
"require": {
"black/cqrs-php": "@stable"
}
}
Protip: You should browse the black/cqrs-php
page to choose a stable version to use, avoid the @stable
meta
constraint.
First, I want to create a folder structure for my continuous project based on semantic. This small library is a good start for my project and, even if some parts of this integration versus DDD rules are questionable, this work will work for a lot a project.
This project is a simple folder structure with interfaces (with simple contracts). Follow this structure and your project will follow DDD (not exactly true but your design will be fine).
This project is a work in progress so don't hesitate to see CONTRIBUTING file and submit your PR.
The code is heavily inspired by Benjamin Eberlei blog posts who did a very great job on many projects (including Doctrine and litecqrs-php.
This README is heavily inspired by Hateoas library by the great @willdurand. This guy needs your PR for the sake of the REST in PHP.
Alexandre "pocky" Balmes alexandre@lablackroom.com. Send me Flattrs if you love my work, buy me gift or hire me!
CQRS in PHP
is released under the MIT License. See the bundled LICENSE file for details.