Skip to content

CQRS PHP Example. Specific examples about how to model an app following DDD and CQRS principles

Notifications You must be signed in to change notification settings

marcmascort/cqrs-ddd-php-example

 
 

Repository files navigation

Keep it simple :)

CodelyTV CircleCI

CodelyTv is the way to rediscover the programming ;) Trusted by more than 1000 youtube subscribers.

Trust in Codely, trust in you.

Quick Start

This is a simple demo of a CQRS project.

1. Clone this repo

Execute: git clone https://github.com/CodelyTV/cqrs-ddd-example

2. Install all the dependencies

Composer is used to handle the dependencies. You can download it executing: curl -sS https://getcomposer.org/installer | php

And then you can install all the dependencies and setting your parameters executing: php composer.phar install

3. Run the tests!

Once you have all the dependencies, in order to execute the tests, run this command: vendor/bin/behat -p api // This will also create the needed databases. vendor/bin/behat -p applications vendor/bin/phpunit

Contributing

There are some things missing (add swagger, improve documentation...), feel free to add this if you want! If you want some guidelines feel free to contact us :)

Extra

This code was show in the From framework coupled code to #microservices through #DDD talk and doubts where answered in DDD y CQRS: Preguntas Frecuentes video.

About

CQRS PHP Example. Specific examples about how to model an app following DDD and CQRS principles

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 98.9%
  • Gherkin 1.1%