/ddd-php

DDD-PHP

Primary LanguagePHPMIT LicenseMIT

DDD PHP

DDD 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 DDD in PHP is through Composer:

{
    "require": {
        "black/ddd-php": "@stable"
    }
}

Protip: You should browse the black/ddd-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 library will work for a lot of projects.

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 prrogress so don't hesitate to see CONTRIBUTING file and submit your PR.

Credits

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

DDD in PHP is released under the MIT License. See the bundled LICENSE file for details.