Download the PHP package jozi/laravel-rabbitevents-sourcing without Composer
On this page you can find all versions of the php package jozi/laravel-rabbitevents-sourcing. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jozi/laravel-rabbitevents-sourcing
More information about jozi/laravel-rabbitevents-sourcing
Files in jozi/laravel-rabbitevents-sourcing
Package laravel-rabbitevents-sourcing
Short Description Integration between nuwber/rabbitevents and spatie/laravel-event-sourcing packages
License MIT
Informations about the package laravel-rabbitevents-sourcing
RabbitEvents Sourcing
A simple integration between nuwber/rabbitevents
and spatie/laravel-event-sourcing
.
Both are used to facilitate event sourcing and intraservice communication using RabbitMQ topic exchanges.
Installation
Using composer:
Usage/Examples
All stored and published events extends the StoredRabbitEvent
class. These events will be handled for both event sourcing (spatie/laravel-event-sourcing
) and publishing to RabbitMQ (nuwber/rabbitevents
).
For this class, a string $eventKey
is explictly required for the event to be published. The $eventKey
is the same as RabbitMQ's routing key.
After an event has been defined, you may invoke it using the publish_event
helper function. It is just a simple wrapper for invoking both event
and publish
as a one-liner.
Acknowledgements
License
All versions of laravel-rabbitevents-sourcing with dependencies
laravel/lumen-framework Version ^8.0
nuwber/rabbitevents Version ^6.0
spatie/laravel-event-sourcing Version ^5.0