Download the PHP package andreo/eventsauce-bundle without Composer
On this page you can find all versions of the php package andreo/eventsauce-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download andreo/eventsauce-bundle
More information about andreo/eventsauce-bundle
Files in andreo/eventsauce-bundle
Package eventsauce-bundle
Short Description Symfony bundle for EventSauce.
License MIT
Informations about the package eventsauce-bundle
EventSauceBundle 3.0
Official documentation of eventsauce
Supports
- Doctrine3 event store
- Symfony messenger message dispatcher
- Anti-Corruption Layer
- Event dispatcher
- Message Outbox
- Snapshot doctrine repository, versioning, conditional persist
- All events in table per aggregate type
- Generating migrations per aggregate
Previous versions
Requirements
- PHP >=8.2
- Symfony ^6.2
Installation
Introduction
Below configs presents default values and some example values. \ Note that most of default config values do not need to configure.
Clock
Useful aliases
Message Storage
Doctrine 3
Require
- doctrine/dbal
Message dispatcher
Example of manually registration sync consumer \ (without attribute and autoconfiguration)
Dispatching with Symfony messenger
Install andreo/eventsauce-messenger
It registers alias of handle event sauce message middleware:
Update messenger config. According to above config
Useful aliases
Message dispatcher tag (for manually registration of dispatchers, if you will want)
Anti-Corruption Layer
Enable for Message dispatcher (by config)
Enable for Message consumer
Example of manually registration acl consumer (or dispatcher) \ (without attribute and autoconfiguration)
Message translator
Example of manually registration message filter \ (without attribute and autoconfiguration)
Message filter
Message filter strategies:
match_all
- all filters passed a condition \
match_any
- any filter passed a condition
Message Filter
Example of manually registration message filter \ (without attribute and autoconfiguration)
Owners of message translator or filters
For example, we use Translator, but Filter works the same
Event Dispatcher
Example of Event Dispatcher
Upcaster
Before unserialize
Install andreo/eventsauce-upcasting
Example of manually registration (without attribute and autoconfiguration)
Message decorator
Example of manually registration (without attribute and autoconfiguration)
Message Outbox
Install andreo/eventsauce-outbox
Base configuration
Consume outbox messages
Useful aliases
Snapshotting
To use:
- doctrine snapshot repository
- versioned snapshots
- conditional persist
package andreo/eventsauce-snapshotting is required
Useful aliases
Migration generator
Install andreo/eventsauce-migration-generator
Generate migration for foo prefix
Useful aliases
Aggregates
Repository injection
Snapshotting repository injection (if aggregate snapshot is enabled)
Useful aliases
Other tips
Decorating aggregate root repository
Example api using this bundle
Repository
All versions of eventsauce-bundle with dependencies
eventsauce/eventsauce Version ^3.0
eventsauce/message-repository-for-doctrine Version ^0.4.1
symfony/http-kernel Version ^6.2
symfony/config Version ^6.2
symfony/dependency-injection Version ^6.2