eventsauce/message-repository-for-doctrine
Doctrine DBAL-backed EventSauce MessageRepository for persisting event streams. Supports configurable table/column schemas (default or legacy) and pluggable UUID encoding (binary or string), plus custom headers/columns for indexing and storage optimization.
LegacyTableSchema.Use this if:
Look elsewhere if:
For Executives: "This package lets us store domain events in our existing PostgreSQL/MySQL database using Doctrine, cutting costs by avoiding third-party event stores. It’s a lightweight, self-hosted solution that aligns with our PHP/Laravel stack—ideal for event sourcing use cases like audit logs, user activity tracking, or financial transactions. Low maintenance, high compatibility."
For Engineering: "We can leverage Doctrine DBAL to persist events with customizable schemas (e.g., adding metadata columns for indexing). Supports UUIDs natively (binary or string) and includes a legacy schema for migrations. Perfect for greenfield projects or adding event sourcing to existing apps without heavy infrastructure changes. Trade-off: No built-in projections or subscriptions, but we can layer those on top if needed."
For Developers: "Drop-in event repository for Doctrine DBAL. Configure once with your connection, serializer, and schema—then query events by aggregate ID/version. Supports custom UUID encoding and extra columns for flexibility. Docs are minimal but the API is straightforward."
How can I help you explore Laravel packages today?