/last-wishes

Last Wishes is a PHP application written following Domain-Driven Design approach. It's one of the sample applications where you can check the concepts explained in the "Domain-Driven Design in PHP" book.

Primary LanguagePHP

Last Wishes - DDD Sample Application

Build Status

Install assets

bower install

Set up the project

curl -sS https://getcomposer.org/installer | php
php composer.phar install

Create the database schema

php bin/doctrine orm:schema-tool:create

Run your Last Will bounded context

php -S localhost:8080 -t src/Lw/Infrastructure/Ui/Web/Silex/Public

Notify all domain events via messaging

php bin/console domain:events:spread

Notify all domain events via messaging to another new BC deployed

php bin/console domain:events:spread <exchange-name>

Exercises

For the DDD learners, I propose you some exercises to practice your skills.

UserRepository running with Redis

The default project uses Doctrine and SQLite to persist users, however, we would like to easily change the persistence storage to use Redis. The PRedis dependency is already specified in the composer.json file.

UserRepository running with MongoDB

The default project uses Doctrine and SQLite to persist users, however, we would like to easily change the persistence storage to use MongoDB.