2017 © Pedro Peláez
 

library event-recorder

Record events to be dipatched later

image

jdr/event-recorder

Record events to be dipatched later

  • Wednesday, April 5, 2017
  • by jdr
  • Repository
  • 1 Watchers
  • 2 Stars
  • 40 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

event-recorder

Latest Version on Packagist ![Software License][ico-license] Total Downloads, (*1)

Install

Via Composer, (*2)

``` bash $ composer require jdr/event-recorder, (*3)


## Usage To start recording domain events, implement the `ContainsRecordedEvents` interface. Optionally, you can use the `EventRecorderCapabilities` trait. ``` php <?php namespace JDR\App\Entity; use JDR\EventRecorder\ContainsRecordedEvents; use JDR\EventRecorder\EventRecorderCapabilities; class Entity implements ContainsRecordedEvents { use EventRecorderCapabilities; public function doSomething() { // ... $this->record(new SomethingHappened()); } } $entity = new Entity(); $entity->doSomething(); // ... $events = $entity->releaseEvents();

This package also contains a public event recorder., (*4)

``` php <?php namespace JDR\App;, (*5)

use JDR\EventRecorder\EventRecorder;, (*6)

$recorder = new EventRecorder(); $recorder->record(new SomethingHappened());, (*7)

// ..., (*8)

$events = $recorder->releaseEvents();, (*9)


## Change log Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently. ## Testing ``` bash $ bin/phpspec run

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*10)

Security

If you discover any security related issues, please email dev@johanderuijter.nl instead of using the issue tracker., (*11)

Credits

License

The MIT License (MIT). Please see License File for more information., (*12)

The Versions

05/04 2017

dev-master

9999999-dev https://github.com/johanderuijter/event-recorder

Record events to be dipatched later

  Sources   Download

MIT

The Requires

  • php ~7.0

 

The Development Requires

jdr event-recorder

05/04 2017

0.0.2

0.0.2.0 https://github.com/johanderuijter/event-recorder

Record events to be dipatched later

  Sources   Download

MIT

The Requires

  • php ~7.0

 

The Development Requires

jdr event-recorder

02/08 2016

0.0.1

0.0.1.0 https://github.com/johanderuijter/event-recorder

Record events to be dipatched later

  Sources   Download

MIT

The Requires

  • php ~7.0

 

The Development Requires

jdr event-recorder