Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 1.22 KB

README.md

File metadata and controls

17 lines (13 loc) · 1.22 KB

CQRS skeleton project based on Symfony Framework

This repository is a starter kit for your cqrs projects based on a talk given by @lilobase at Afup's PHPTour.

You can easily watch the slides here in order to understand how you can extend this project to your needs.

I adapted it based on my knowledge of several projects using this pattern.

Requirements

You need php 7.2 to make it work correctly due to the use of object type. This project is based on symfony/skeleton (currently v4.2)

Where to start ?

First create an aggregate root folder in src and several business domain folders containing either the following subfolders Command Domain Event Infrastructure Query. Edit the following config files to your needs :

  • config/routes/annotations.yaml : must point to your controllers classes
  • config/services/_yourservices_.yaml : definition of your different services and import it in config/services.yaml
  • config/packages/doctrine.yaml : add the mapping to your doctrine entities