ecotone/pdo-event-sourcing

PDO-backed Event Store for Ecotone — event-sourced aggregates, projections, upcasting, and streaming projections (Kafka, RabbitMQ).

Maintainers

Package info

github.com/ecotoneframework/pdo-event-sourcing

Homepage

pkg:composer/ecotone/pdo-event-sourcing

Fund package maintenance!

dgafka

Statistics

Installs: 168 271

Dependents: 3

Suggesters: 0

Stars: 8

1.309.3 2026-04-23 17:38 UTC

This package is auto-updated.

Last update: 2026-04-23 17:38:35 UTC


README

To contribute make use of Ecotone-Dev repository.

Github Actions Latest Stable Version License Total Downloads PHP Version Require

Ecotone is the PHP architecture layer that grows with your system — without rewrites.

From #[CommandHandler] on day one, to event sourcing, sagas, outbox, and distributed messaging at scale — one package, same codebase, no forced migrations between growth stages. Declarative PHP 8 attributes on the classes you already have.

Event Sourcing (PDO-backed Event Store)

Full Event Sourcing support for Ecotone, backed by your relational database via PDO. Event-sourced aggregates, projections, upcasting, and replay — all driven by attributes on your existing classes.

  • Event-sourced aggregates via #[EventSourcingAggregate] — one attribute flips state-stored to event-sourced
  • Projections via #[Projection] — catch-up, reset, partition, and streaming variants
  • Event versioning and upcasting — evolve your event schema without rewriting history
  • Streaming Projections — process events in real-time with Message Broker transport
  • PostgreSQL and MySQL supported out of the box

Same testing story as the rest of Ecotone: spin up the event store in memory with EcotoneLite::bootstrapFlowTesting, replay events into your projections, and assert on results — no external infrastructure required.

Visit ecotone.tech to learn more.

Works with Symfony, Laravel, or any PSR-11 framework via Ecotone Lite.

Getting started

See the quickstart guide and reference documentation. Read more on the Ecotone Blog.

AI-Ready documentation

Ecotone ships with MCP server, Agentic Skills, and LLMs.txt for any coding agent. See the AI Integration Guide.

Feature requests and issue reporting

Use issue tracking system for new feature request and bugs. Please verify that it's not already reported by someone else.

Contact

If you want to talk or ask questions about Ecotone

Support Ecotone

If you want to help building and improving Ecotone consider becoming a sponsor:

Tags

PHP, Event Sourcing, Event Store, Projections, DCB, CQRS, DDD, PostgreSQL, MySQL, Ecotone