Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Event Sourcing Laravel Package

dddominio/event-sourcing

Laravel package for event sourcing in DDD-style apps. Store and replay domain events to rebuild aggregates, keep an append-only event log, and track state changes over time. Useful for audit trails, projections, and CQRS-inspired architectures.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Architectural Alignment: Enables adoption of Domain-Driven Design (DDD) and Event Sourcing patterns, aligning with long-term tech strategy for scalable, audit-friendly systems (e.g., financial, healthcare, or supply chain apps).
  • Roadmap Acceleration: Reduces time-to-market for event-driven features (e.g., real-time notifications, complex workflows) by abstracting event storage/replay logic.
  • Build vs. Buy: Justifies buying (via this package) over custom implementation for teams lacking DDD expertise or needing rapid prototyping of event-sourced domains.
  • Use Cases:
    • Audit Trails: Immutable event logs for compliance (e.g., GDPR, HIPAA).
    • CQRS: Separate read/write models with event projections.
    • Resilience: Rebuild state from events after failures (e.g., microservices recovery).
    • Collaboration: Shared event schemas across services (e.g., monolith-to-microservices migration).

When to Consider This Package

  • Adopt If:
    • Your team is new to DDD/Event Sourcing and needs a Laravel-friendly scaffold.
    • You prioritize developer velocity over customization (MIT license allows forks).
    • Your domain requires temporal queries (e.g., "show all order changes from 2023").
    • You’re using Laravel and want to avoid reinventing event storage (e.g., no need for Kafka/EventStoreDB if simplicity suffices).
  • Look Elsewhere If:
    • You need high-throughput event streaming (e.g., 100K+ events/sec) → consider Kafka/Pulsar.
    • Your events require strict ACID transactions → pair with a database like PostgreSQL.
    • You’re locked into a non-Laravel stack (e.g., Node.js, Python).
    • You need advanced event versioning or conflict resolution (e.g., CRDTs).

How to Pitch It (Stakeholders)

For Executives: "This package lets us adopt Event Sourcing—a battle-tested pattern for complex domains like [X use case]—without hiring specialized architects or building from scratch. It’s like ‘Git for our business logic’: every change is an immutable event, enabling audits, time-travel debugging, and resilient systems. For [Y cost], we avoid 6+ months of dev time and get a maintainable foundation. Competitors using custom solutions risk technical debt; we’re leveraging open-source to move faster."

For Engineering: *"The dddominio/event-sourcing package gives us:

  • Laravel-native event storage (no new infrastructure).
  • Pre-built aggregates, repositories, and event buses—just define your domain models.
  • Seamless integration with Laravel’s ecosystem (e.g., queues, caching).
  • MIT license: Safe to fork if we hit limits. Tradeoff: It’s opinionated (e.g., no built-in snapshotting), but we can extend it. Let’s prototype [Z feature] with it and measure before committing."*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
besmartand-pro/php-quality-config
sentix/ai-chatbot
codifyo/ts-generator-bundle
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor