Download the PHP package prooph/annotations without Composer
On this page you can find all versions of the php package prooph/annotations. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download prooph/annotations
More information about prooph/annotations
Files in prooph/annotations
Package annotations
Short Description Adds annotation support to prooph
License BSD-3-Clause
Homepage http://getprooph.org/
Informations about the package annotations
prooph/annotations
This package adds support for annotations to Prooph.
Important
This library will receive support until December 31, 2019 and will then be deprecated.
For further information see the official announcement here: https://www.sasaprolic.com/2018/08/the-future-of-prooph-components.html
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!
Usage
TODO
See the example in example/example.php.
Supported annotations
This package introduces the following annotations:
-
@AggregateIdentifier
Should be put on a property to indicate where the aggregate identifier can be found.
-
@CommandHandler
-
@EventHandler
-
@TargetAggregateIdentifier
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.
POPO aggregates
AggregateLifecycle::recordThat
TODO
Links
This package was partly inspired by Axon Framework 3.0.
All versions of annotations with dependencies
doctrine/annotations Version ^1.3
prooph/common Version ^4.1
prooph/event-sourcing Version ^5.0
prooph/event-store Version ^7.3.1
prooph/service-bus Version ^6.2
phpunit/phpunit Version v6.2.1