gpslab/domain-event-bundle
Symfony bundle that integrates gpslab/domain-event with the framework, making it easy to publish and handle domain events through Symfony services and configuration. Lightweight setup for decoupled domain events in Symfony applications.
Adopt only if all of these hold:
Look elsewhere if:
RecordsDomainEvents trait plus DB::afterCommit, or evaluate spatie/laravel-event-sourcing if you need persistence and replay.gpslab/* packages share the same maintenance profile; adopting the family compounds the risk rather than diversifying it.To executives: This is a evaluate-and-likely-reject, not a procurement. It costs roughly one engineer-week to spike, has a near-zero licensing cost (MIT), and an unusually low exit cost because the surface area is small and the code is readable. The strategic risk is dependency abandonment, not price: one maintainer, no release in over four years, no downstream users. Recommendation: approve a timeboxed spike to validate the pattern, and pre-commit to either forking the ~small codebase internally or building an equivalent module. Do not list it as a platform dependency on the architecture roadmap.
To engineering: It solves a real problem — raising domain events inside aggregates and dispatching them after the transaction commits — with a clean, minimal API. But it is Symfony-only, unmaintained since 2021, and used by no one public, so expect to own PHP and framework compatibility yourself. Proposed path: one-week spike on a single bounded context, measure how much glue it actually removes versus a 200-line in-house trait, and decide fork-versus-build. Success looks like deleting duplicated dispatch code and eliminating at least one cross-module import; failure looks like us patching a bundle we didn't want to maintain.
How can I help you explore Laravel packages today?