simple-bus/doctrine-orm-bridge
Doctrine ORM bridge for SimpleBus/MessageBus. Provides command bus middleware to run command handling inside Doctrine transactions and to dispatch domain events generated by entities. Part of the SimpleBus ecosystem.
Order entities emitting OrderCreatedEvent).PreUpdate events) for immutable logs without manual tracking.UserRegisteredEvent → SendWelcomeEmail).Adopt When:
flush()/commit() calls in handlers).Look Elsewhere If:
*"This package lets us safely adopt event-driven architecture without custom infrastructure. By integrating SimpleBus with Doctrine ORM, we can:
OrderShipped) trigger side effects (e.g., notifications, analytics) without tight coupling.*"This is a zero-dependency bridge that:
flush()—the middleware handles it.UserRegisteredEvent) are captured and dispatched without manual loops.ProcessPayment command triggers a PaymentProcessedEvent).
Trade-offs: Tied to SimpleBus/Doctrine; not a silver bullet for async event sourcing. But for synchronous, transactional event handling, it’s a no-brainer."*Call to Action: "Let’s prototype this for [high-priority feature X]. It’s a drop-in for SimpleBus/Doctrine apps and could save us [Y] hours of dev time. Start with a spike to validate integration with our existing command/event patterns."
How can I help you explore Laravel packages today?