sidigi / php-ddd-cqrs-event-sourcing-symfony-ecotone

ES DDD CQRS PHP Symfony example

Repository from Github https://github.comsidigi/php-ddd-cqrs-event-sourcing-symfony-ecotoneRepository from Github https://github.comsidigi/php-ddd-cqrs-event-sourcing-symfony-ecotone

PHP Application using DDD CQRS Event Sourcing Symfony Ecotone with Hexagonal Architecture

alt text

Application shows the how complex systems can be built with ease using PHP.
The example using CQRS DDD and Event Sourcing backed by Prooph in Symfony using Ecotone Framework.

Have fun :)

Run using docker-compose

cd docker-compose && docker-compose up -d

And then application is available under localhost:3000
As read model is updated asynchronously, you may need to refresh after performing action to see the changes.

Run on local Kubernetes

In order to set up local cluster with ease follow the instructions from here. And install skaffold for automatic code synchronization to your Kubernetes. You will be able to modify the code and see the changes instantly on same deployment.

Add to your hosts file (/etc/hosts) ecotone.local.dev for your docker ip address (127.0.0.1 for linux)
Run `skaffold dev --tail`
Enter `https://ecotone.local.dev` and enjoy the application :)  

If you want to get more information on how it everything play together visit the blog post.

Possible Integrations with Laravel and Ecotone Lite

Application is written in Symfony, however Ecotone integrates with Laravel and can be run alone without any additional framework (Ecotone Lite).
All the code that is written in here, will work exactly the same way, when will be run with Laravel or Ecotone Lite.

About

ES DDD CQRS PHP Symfony example


Languages

Language:PHP 75.0%Language:Twig 22.3%Language:Dockerfile 2.2%Language:Shell 0.5%