2017 © Pedro Peláez
 

project event-log

Aggregate based EventLog for event sourcing.

image

domain-query-language/event-log

Aggregate based EventLog for event sourcing.

  • Monday, July 18, 2016
  • by barryosull
  • Repository
  • 3 Watchers
  • 1 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

EventLog

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)

Usage:

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)

Laravel Setup:

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);

The Versions

18/07 2016

dev-master

9999999-dev

Aggregate based EventLog for event sourcing.

  Sources   Download

MIT

The Requires

 

The Development Requires

log event store event sourced