PHPackages                             prooph/annotations - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. prooph/annotations

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

prooph/annotations
==================

Adds annotation support to prooph

v0.1.0(8y ago)12201[2 issues](https://github.com/prooph/annotations/issues)BSD-3-ClausePHPPHP ^7.1

Since Feb 22Pushed 7y ago3 watchersCompare

[ Source](https://github.com/prooph/annotations)[ Packagist](https://packagist.org/packages/prooph/annotations)[ Docs](http://getprooph.org/)[ RSS](/packages/prooph-annotations/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (11)Versions (3)Used By (0)

prooph/annotations
==================

[](#proophannotations)

[![Build Status](https://camo.githubusercontent.com/3bdc8570d0aae5260595cc78b6a84d26118f60d08bc571bb30171da225ff7998/68747470733a2f2f7472617669732d63692e6f72672f70726f6f70682f616e6e6f746174696f6e732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/prooph/annotations)[![Coverage Status](https://camo.githubusercontent.com/d943bb2b6103724ad9e19d44a4a47e0f3dcb321d773c4383d8a158ecab9f65c5/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f70726f6f70682f616e6e6f746174696f6e732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/r/prooph/annotations?branch=master)[![Gitter](https://camo.githubusercontent.com/abe08b740a4156153736f791393ec4da6619c4be73212e75769f52edacc0e2b5/68747470733a2f2f6261646765732e6769747465722e696d2f4a6f696e253230436861742e737667)](https://gitter.im/prooph/improoph)

This package adds support for annotations to Prooph.

Important
---------

[](#important)

This library will receive support until December 31, 2019 and will then be deprecated.

For further information see the official announcement here:

Features
--------

[](#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
-----

[](#usage)

TODO

See the example in [example/example.php](example/example.php).

### Supported annotations

[](#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

[](#popo-aggregates)

`AggregateLifecycle::recordThat`

TODO

### Links

[](#links)

This package was partly inspired by [Axon Framework 3.0](http://www.axonframework.org/).

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3118d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7341005?v=4)[prooph](/maintainers/prooph)[@prooph](https://github.com/prooph)

---

Top Contributors

[![mrook](https://avatars.githubusercontent.com/u/477719?v=4)](https://github.com/mrook "mrook (16 commits)")[![prolic](https://avatars.githubusercontent.com/u/394428?v=4)](https://github.com/prolic "prolic (10 commits)")[![basz](https://avatars.githubusercontent.com/u/143068?v=4)](https://github.com/basz "basz (4 commits)")

---

Tags

annotationscqrsdddphpproophannotationprooph

### Embed Badge

![Health badge](/badges/prooph-annotations/health.svg)

```
[![Health](https://phpackages.com/badges/prooph-annotations/health.svg)](https://phpackages.com/packages/prooph-annotations)
```

###  Alternatives

[prooph/service-bus

PHP Enterprise Service Bus Implementation supporting CQRS and DDD

4451.4M32](/packages/prooph-service-bus)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

54681.3k17](/packages/solspace-craft-freeform)[prooph/event-sourcing

PHP EventSourcing library

266824.6k18](/packages/prooph-event-sourcing)[prooph/event-store-bus-bridge

Marry CQRS with Event Sourcing

38526.2k13](/packages/prooph-event-store-bus-bridge)[koriym/attributes

An annotation/attribute reader

443.6M14](/packages/koriym-attributes)[prooph/snapshotter

snapshot tool for prooph event-store

19172.8k3](/packages/prooph-snapshotter)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
