Download the PHP package chocofamilyme/laravel-eventsauce without Composer
On this page you can find all versions of the php package chocofamilyme/laravel-eventsauce. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download chocofamilyme/laravel-eventsauce
More information about chocofamilyme/laravel-eventsauce
Files in chocofamilyme/laravel-eventsauce
Package laravel-eventsauce
Short Description Laravel Eventsauce integration
License MIT
Homepage https://github.com/chocofamily/laravel-eventsauce
Informations about the package laravel-eventsauce
LaravelEventSauce
Laravel adapter for EventSauce. Before using this package you should already know how to work with EventSauce.
Requirements
- PHP ^7.2
- Laravel ^5.8
Installation
Via Composer
Migrations
You can publish and modify default migrations tables (domain_messages
, snapshots
) with the following command:
Configuration
You can publish the config file with the following command:
Code Generation
Types, commands and events can be generated starting from a yaml file. Here you can specify the input and the output of the code generation. More info on code generation here: https://eventsauce.io/docs/getting-started/create-events-and-commands
Default Connection
The default database connection can be modified by setting the EVENTSAUCE_CONNECTION
env variable:
Default Message Table
The default table name for your domain messages can be set with the EVENTSAUCE_TABLE
env variable:
Default Snapshot Table
The default table name used to store snapshots can be set with the EVENTSAUCE_SNAPSHOT_TABLE
env variable:
Default Message Repository
This class will be used to store messages. You may change this to any class that implements EventSauce\EventSourcing\MessageRepository
, by default used Chocofamily\LaravelEventSauce\MessageRepository::class
Default Snapshot Repository
This class will be used to store snapshots. You may change this to any class that implements EventSauce\EventSourcing\Snapshotting\SnapshotRepository
, by default used Chocofamily\LaravelEventSauce\SnapshotRepository::class
Default Consumer Handler
This class will be used to put message on the handlers, by default used Chocofamily\LaravelEventSauce\ConsumerHandler::class
Usage
TODO
License
license. Please see the license file for more information.
All versions of laravel-eventsauce with dependencies
ext-json Version *
eventsauce/eventsauce Version ^0.8.0
illuminate/bus Version ^5.7|^5.8|^6.0
illuminate/container Version ^5.7|^5.8|^6.0
illuminate/queue Version ^5.7|^5.8|^6.0
illuminate/support Version ^5.7|^5.8|^6.0
ramsey/uuid Version ^3.8