willdurand/propel-eventdispatcher-behavior
Propel behavior that integrates Symfony’s EventDispatcher into your model classes. Add it to your Propel config and schema to auto-generate an EventDispatcher per ActiveRecord class via getEventDispatcher(), enabling event-driven hooks in models.
EventDispatcher into Propel ORM models, allowing teams to adopt EDA patterns (e.g., pub/sub, hooks, or workflows) without reinventing event systems. Aligns with roadmaps for modular, loosely coupled systems.postSave/postDelete events to log changes via listeners.OrderStatusUpdatedEvent).UserProfileUpdatedEvent → trigger KYC checks).EventDispatcher over this Propel-specific wrapper.events + listeners or a message broker (e.g., RabbitMQ).symfony/event-dispatcher-contracts).For Executives: "This package lets us add event-driven logic to our Propel models with minimal code—think of it like ‘hooks on steroids.’ For example, when a user updates their profile, we can automatically trigger notifications, sync data to third parties, or log changes—all without tight coupling. It’s a lightweight way to modernize legacy systems or add flexibility to new features, reducing the need for custom event infrastructure. The MIT license and Symfony’s backing ensure reliability, though we’d need to confirm it fits our Propel version."
For Engineers:
*"This integrates Symfony’s EventDispatcher into Propel 1.x models via a behavior, giving us:
user.save() → UserSavedEvent) and handle them in listeners/services.preInsert, postUpdate) across the codebase.For Developers:
"Add this to your schema.xml and suddenly your Propel models can dispatch events like user.save() → UserSavedEvent. No more manual if ($model->isDirty()) checks—just attach listeners to handle side effects (e.g., sending emails, updating caches). Docs are minimal, but the Symfony EventDispatcher is well-documented. Start with a single model to test the pattern before rolling it out."
How can I help you explore Laravel packages today?