2017 © Pedro Peláez
 

library lej-ddd

image

lej/lej-ddd

  • Tuesday, March 28, 2017
  • by torstenheinrich
  • Repository
  • 1 Watchers
  • 0 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

lej-ddd

This is just a collection of classes and interfaces useful within a domain-driven-design context in PHP. Have fun!, (*1)

Domain event

An interface every domain event should implement. Exposes a date on which the domain event occurred., (*2)

Domain event publisher

A simple domain event publisher, implementing the singleton pattern to avoid injecting into every single domain object., (*3)

Domain event subscriber

An interface every domain event subscriber should implement. Subscribing to DomainEvent::class acts a wildcard, all events published are passed to the subscriber., (*4)

Entity

An interface every entity should implement. Exposes an equals() method that can be used to test whether two entities has the same identity., (*5)

Id

An interface every identity should implement., (*6)

Value object

An interface every value object should implement. Exposes an equals() method that can be used to test whether two value objects represent the same set of data., (*7)

Scaffolding

To support rapid development, a few CLI commands are available to create the most common domain objects., (*8)

  • bin/console lej-ddd:create-domain-event <domain> <context> <name>
  • bin/console lej-ddd:create-entity <domain> <context> <name>
  • bin/console lej-ddd:create-string-id <domain> <context> <name>
  • bin/console lej-ddd:create-uuid-id <domain> <context> <name>
  • bin/console lej-ddd:create-value-object <domain> <context> <name>

Build Status Scrutinizer Code Quality Code Coverage, (*9)

The Versions

28/03 2017
19/03 2017

1.3.0

1.3.0.0

  Sources   Download

The Requires

 

The Development Requires

08/03 2017

1.2.0

1.2.0.0

  Sources   Download

The Requires

 

The Development Requires

26/02 2017

1.1.0

1.1.0.0

  Sources   Download

The Requires

 

The Development Requires

25/02 2017

1.0.0

1.0.0.0

  Sources   Download

The Requires

 

The Development Requires