2017 © Pedro Peláez
 

library momento

A library for domain events

image

texdc/momento

A library for domain events

  • Saturday, October 14, 2017
  • by texdc
  • Repository
  • 1 Watchers
  • 2 Stars
  • 3 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 0 Forks
  • 1 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

Momento

Simple domain event library inspired by Vaughn Vernon's book Implementing Domain Driven Design, and some of his code samples., (*1)

Latest Build Dependencies Latest Stable Version Total Downloads License, (*2)

Event Handlers

namespace My\Event;

use texdc\momento\AbstractEventHandler;
use texdc\momento\EventInterface;

final class Handler extends AbstractEventHandler
{
    protected static $validEventTypes = [
        FooEvent::TYPE,
        BarEvent::TYPE,
    ];

    public function __invoke(EventInterface $anEvent)
    {
        $type = $anEvent->eventType();
        $this->guardValidEventType($type);
        call_user_func([$this, $type], $anEvent);
    }

    // ...
}

The Versions

14/10 2017

dev-master

9999999-dev

A library for domain events

  Sources   Download

MIT

The Requires

 

The Development Requires

ddd domain event

14/10 2017

v2.0.0

2.0.0.0

A library for domain events

  Sources   Download

MIT

The Requires

 

The Development Requires

ddd domain event

14/10 2017

dev-develop

dev-develop

A library for domain events

  Sources   Download

MIT

The Requires

 

The Development Requires

ddd domain event

28/02 2016

v1.0.0

1.0.0.0

A library for domain events

  Sources   Download

MIT

The Requires

 

The Development Requires

ddd domain event

22/12 2015

v0.1.0

0.1.0.0

A library for domain events

  Sources   Download

MIT

The Requires

 

The Development Requires

ddd domain event

24/05 2015

dev-feature-mutable_event_publisher

dev-feature-mutable_event_publisher

A common set of domain event tools

  Sources   Download

MIT

The Requires

 

The Development Requires

ddd domain event

01/05 2014

1.0.0-alpha

1.0.0.0-alpha

A common set of domain event tools

  Sources   Download

MIT

The Requires

  • php ~5.4

 

The Development Requires

ddd domain event