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

norter/cqrs-ddd-php-example

 
 

Repository files navigation

Keep it simple :)

CodelyTV CircleCI

Implementation example of a PHP application following Domain-Driven Design (DDD) and Command Query Responsibility Segregation (CQRS) principles. Used by the CodelyTV Pro courses:

Environment setup

Install the needed tools

  1. Clone this repository: git clone https://github.com/CodelyTV/cqrs-ddd-php-example cqrs-ddd-php-example
  2. Move to your project folder: cd cqrs-ddd-php-example
  3. Install dependencies: php composer.phar install

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.3%
  • Gherkin 1.6%
  • Shell 0.1%