david2m/prooph-event-store-doctrine-adapter-bundle
config/packages/ files and potential service overrides. May require custom Doctrine entity mappings for events.pdo or mongodb for scalability).EventStore versioning).EventPublisher mocks.pdo/mongodb adapter for performance?spatie/laravel-event-sourcing, Axon Framework): May fit better for non-Symfony apps.Order) and its events.OrderCreated, OrderCancelled).OrderCreatedEvent).config/packages/david2m_prooph_event_store.yaml.order-{id}).EventPublisher.OrderView) to materialize state from events (using Doctrine queries or custom projections).autowiring, flex recipes).| Phase | Tasks | Dependencies |
|---|---|---|
| Research | Understand Prooph Event Store, CQRS/ES patterns. | Business requirements. |
| Setup | Install bundle, configure Doctrine, set up Prooph Event Store. | Symfony + Doctrine. |
| Aggregate Design | Identify aggregates, events, and commands. | Domain analysis. |
| Event Modeling | Define event classes, versioning strategy. | Aggregate design. |
| Persistence | Configure Doctrine entities for events, set up event store. | Prooph Event Store. |
| Command Handlers | Replace CRUD with event publishing (e.g., OrderCommandHandler). |
Event modeling. |
| Projections | Build read models or materialized views. | Event store. |
| Testing | Write replay tests, edge-case tests (e.g., event failures). | Full implementation. |
| Deployment | Migrate existing data (if needed), monitor performance. | Testing phase. |
| Optimization | Tune Doctrine queries, consider async event publishing (Symfony Messenger). | Post-deployment feedback. |
EventStore::withMetadata()).EventStore::load() to inspect streams.php bin/console debug:event-store).ExpectedVersion in Prooph).pdo with bulk inserts).How can I help you explore Laravel packages today?