dev-master
9999999-devAggregate based EventLog for event sourcing.
MIT
The Requires
- php >=5.6
- ramsey/uuid 3.4.*
The Development Requires
log event store event sourced
Aggregate based EventLog for event sourcing.
The EventLog project, extracted from DQLServer, along with its tests., (*1)
The following adapters are available. - MySQL 5.7 (for microtime) - SQLite, (*2)
They also come in standard PDO or Laravel flavours., (*3)
Using the EventLog is pretty easy, you just instantiate it with the right EventRepository adapter for your situation. if you're using a Dependency Injection system, then easiest way to do it is to map the interface 'EventRepository' to the adapter of your choice (stored in the Adapter folder). If you're using Laravel (which we are), you can just use the Laravel adapter, and the DI system will take care of everything else., (*4)
Here's some sample code using a standard DI system and Laravels providers., (*5)
First setup the provider and point the event repo interface at the right adapter, (*6)
$this->app->singleton( \EventSourced\EventLog\EventRepository::class, \EventSourced\EventLog\Adapter\Laravel\MySQL\EventRepository::class );
The instantiate the EventLog, (*7)
$event_log = $this->app->make(\EventSourced\EventLog\EventLog::class);
Aggregate based EventLog for event sourcing.
MIT
log event store event sourced