dlakomski/doctrine-orm-bridge
Doctrine ORM bridge for SimpleBus/MessageBus. Provides command bus middlewares to wrap command handling in database transactions and to dispatch domain events generated by Doctrine entities. Links to main SimpleBus repo for issues and PRs.
OrderCreated, PaymentProcessed) after command execution (e.g., CreateOrderCommand).Adopt When:
Look Elsewhere If:
*"This package lets us leverage event-driven architecture without building custom infrastructure. By integrating Doctrine ORM with our command bus, we can:
OrderShipped events without tight coupling).*"This bridge solves two key pain points:
try/catch blocks. The package handles rollbacks automatically if a command fails (e.g., CreateOrderCommand + ReserveInventoryCommand).ProductStockUpdated) during lifecycle callbacks, and the bridge publishes them to the bus—without manual collection. This is especially useful for:
UserRegistered to a frontend via WebSocket).PaymentFailed event triggers a fraud alert).Why not build it?
Trade-offs:
Next Steps:
How can I help you explore Laravel packages today?