Download the PHP package mohamedhekal/event-outbox without Composer
On this page you can find all versions of the php package mohamedhekal/event-outbox. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mohamedhekal/event-outbox
More information about mohamedhekal/event-outbox
Files in mohamedhekal/event-outbox
Package event-outbox
Short Description Transactional outbox for reliable domain events in Laravel
License MIT
Homepage https://github.com/mohamedhekal/event-outbox
Informations about the package event-outbox
Event Outbox
Search terms: laravel, outbox, domain-events, reliability, messaging, php, laravel-package, transactional-outbox, events, queues.
Transactional outbox for Laravel: persist domain events in the same DB transaction as your business write, then publish them reliably with a worker.
Problem
DB::commit() + event() / Queue::push() is a dual-write. If the process dies between them, state and events diverge. The outbox pattern makes event emission part of the transaction.
Installation
Usage
Schedule the publisher:
Map types to Laravel events in config/outbox.php:
OrderCreated should accept array $payload (and optionally array $headers).
Every successful publish also fires OutboxMessagePublished.
Idempotent consumers
Commands
Testing
License
MIT
All versions of event-outbox with dependencies
illuminate/support Version ^11.0|^12.0
illuminate/database Version ^11.0|^12.0
illuminate/console Version ^11.0|^12.0
illuminate/events Version ^11.0|^12.0
illuminate/contracts Version ^11.0|^12.0