Download the PHP package black/cqrs-php without Composer
On this page you can find all versions of the php package black/cqrs-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download black/cqrs-php
More information about black/cqrs-php
Files in black/cqrs-php
Package cqrs-php
Short Description Implements CQRS (for DDD in PHP)
License
Homepage http://www.lablackroom.com
Informations about the package cqrs-php
CQRS PHP
CQRS in PHP is a simple project (a folder structure) for your project build with Domain Driven Design.
Installation
The recomanded way to install CQRS in PHP is through Composer:
Protip: You should browse the black/cqrs-php
page to choose a stable version to use, avoid the @stable
meta
constraint.
Why?
I want to use a very basic library for CQRS without Event Sourcing. There is one Bus, register your handler with the related command and go for it!
Usage
1 - Create a Command implementing Black\DDD\CQRSinPHP\Infrastructure\CQRS\Command
2 - Create an Handler implementing Black\DDD\CQRSinPHP\Infrastructure\CQRS\CommandHandler
3 - Register the Handler/Command to the Bus
SymfonyBundle
Register the bundle:
Declare your handler as a service and add this tag:
And use it:
Contributing
This project is a work in progress so don't hesitate to see CONTRIBUTING file and submit your PR.
Credits
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 [email protected]. Send me Flattrs if you love my work, buy me gift or hire me!
License
CQRS in PHP
is released under the MIT License. See the bundled LICENSE file for details.