php-coupled_code-example
php-coupled_code-example copied to clipboard
🐘🤷♂️ Simple demo of a coupled code to ilustrate how to refactor to CQRS & DDD
Keep it simple :)
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 coupled code.
1. Clone this repo
Execute: git clone https://github.com/CodelyTV/coupled-code-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 executing:
php composer.phar install
3. Run the tests!
Once you have all the dependencies, in order to execute the tests, run this command:
bin/phpunit
Extra
This code was show in the From framework coupled code to #microservices through #DDD talk.
You have the CQRS version of the code here