Overview
The persistence-agnostic event sourcing library for PHP.
Installation
Install DomainFlow Event Sourcing Core with Composer.
Quickstart
Create, persist, and reload a small event-sourced aggregate.
Events and aggregates
Understand event construction, replay, stream versions, and aggregate handlers.
Storage
Implement the persistence seams required by Event Sourcing Core.
Snapshots
Speed up aggregate loading with optional snapshots.
Projections
Dispatch events to subscribers and rebuild read models from the global stream.
Outbox
Persist pending deliveries with events and relay them at least once.
Process managers
Build event-driven sagas with persisted state, concurrency checks, and timeouts.
Schema evolution
Keep stored event data readable while classes and payloads evolve.
Metadata and privacy
Add infrastructure metadata and optionally erase marked event data through key destruction.
Operations
Run schema setup, projection rebuilds, and outbox draining as explicit operations.
MongoDB adapter
4 items
MySQL adapter
4 items
Redis adapter
4 items