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.
doctrine/dbal or doctrine/orm) with SimpleBus MessageBus, enabling transactional command handling and domain event processing.
UserCreatedEvent) to a message bus, decoupling event handling from the ORM layer.EventDispatcher. This package offers an alternative for teams already using SimpleBus (or considering it) to avoid reinventing transactional event handling.OrderShipped) that must be processed transactionally.Event system vs. SimpleBus).queue:work vs. SimpleBus’s middleware).dispatch() in a transaction)?Event system?spatie/laravel-doctrine-orm).EventDispatcher.CreateUserCommand) with transactional handling via the bridge.UserCreatedEvent) works alongside Laravel’s native events.Event system to SimpleBus, ensuring no duplicates.Model events (e.g., retrieved, saved) vs. Doctrine’s lifecycle callbacks.Artisan::call().spatie/laravel-doctrine-orm).EntityManager usage in commands with the bridge’s transactional wrappers.Event system and SimpleBus events adds complexity.failed_jobs table.How can I help you explore Laravel packages today?