php-ddd / domain-driven-design Goto Github PK
View Code? Open in Web Editor NEW{NEW} PHP implementation of Eric Evans' domain driven design
License: MIT License
{NEW} PHP implementation of Eric Evans' domain driven design
License: MIT License
We need to define an AbstractAggregateRoot in order to have some basic facilities:
One of the advantage of the event system is to give the ability to log every events that occurs in an application.
This should be built-in.
Furthermore, this will also give us a great example on how a bounded context looks like.
When it comes to change the state of an aggregate whether it's an addition, a deletion or a modification, it's probably a better idea not to have the same flow as when we read it.
The CQRS (command query responsibility segregation) design pattern is a way to fix that issue by defining a clear separation between the read and the write model.
We need to have this kind of feature inside our solution.
What should be included:
In Domain Driven Design, an event system allows to do some actions when something happened in an Aggregate.
Our event system should be able to:
Now we have a command system and an event system. They are separate but can definitely work together.
We need to provide a link between the two systems: a CommandEventDispatcher.
This will be able to start from a Command, handle it and then publish all the events that the command triggered.
We may also only want to publish an Event from this dispatcher.
How to include multiple bounded contexts in a symfony4?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.