2017 © Pedro Peláez
 

library annotations

Adds annotation support to prooph

image

prooph/annotations

Adds annotation support to prooph

  • Sunday, December 17, 2017
  • by prooph
  • Repository
  • 3 Watchers
  • 8 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

prooph/annotations

Build Status Coverage Status Gitter, (*1)

This package adds support for annotations to Prooph., (*2)

Important

This library will receive support until December 31, 2019 and will then be deprecated., (*3)

For further information see the official announcement here: https://www.sasaprolic.com/2018/08/the-future-of-prooph-components.html, (*4)

Features

  • Build aggregates and event listeners, almost without coupling to internal Prooph logic.
  • Use any POPO (Plain Old PHP Object) as an aggregate.

Note: this package is considered experimental!, (*5)

Usage

TODO, (*6)

See the example in example/example.php., (*7)

Supported annotations

This package introduces the following annotations:, (*8)

  • @AggregateIdentifier, (*9)

    Should be put on a property to indicate where the aggregate identifier can be found., (*10)

  • @CommandHandler, (*11)

  • @EventHandler, (*12)

  • @TargetAggregateIdentifier, (*13)

    Should be be put on a property or method in a command (class), to indicate where the identifier of the target aggregate can be found., (*14)

POPO aggregates

AggregateLifecycle::recordThat, (*15)

TODO, (*16)

This package was partly inspired by Axon Framework 3.0., (*17)

The Versions