/cqrs-php

[WIP] CQRS-PHP working draft

Primary LanguagePHPMIT LicenseMIT

CQRS PHP

CQRS in PHP is a simple project (a folder structure) for your project build with Domain Driven Design.

Latest Stable Version Total Downloads

Installation

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.

Why?

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.

Usage

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).

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 alexandre@lablackroom.com. 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.