# doctrine/event-manager

The Doctrine Event Manager is a library that provides a simple event system.

Repository: https://github.com/doctrine/event-manager
Canonical: https://ross.abutalabs.com/products/event-manager
Homepage: https://www.doctrine-project.org/projects/event-manager.html
Language: PHP
License: MIT
License Family: permissive
Topics: eventmanager, event
Last push: 2026-06-12T03:54:14+00:00

## Health v2 (maintenance only)
Score: 83/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 87, release rhythm 68, longevity 100
- inputs: {"age_days": 3010, "days_push": 82, "days_rel": 216, "gap_med": 11, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6045, forks 22 (observed 2026-08-28T04:09:34.586328+00:00)

## What it is
The Doctrine Event Manager is a small PHP library providing a simple event system for subscribing to and dispatching events. It underpins event handling across various Doctrine projects such as DBAL and ORM.

## Use cases
- add event listeners to php application
- dispatch and handle custom events in php
- hook into doctrine dbal or orm lifecycle events
- implement observer pattern in php
- decouple components with an event system

## When to choose
- you need a lightweight, battle-tested event system in PHP
- you are already using Doctrine projects that depend on it
- you want a minimal pub/sub abstraction without framework lock-in

## When to avoid
- you need a full-featured event dispatcher with priorities and advanced features (consider symfony/event-dispatcher)
- your framework already provides a built-in event system
- you are not working in PHP

## Facets
- artifact type: library
- maturity: stable
- function: middleware, developer-tools
- domain: developer-tools, backend, web-development
- platform: php
- tags: event-system, event-dispatcher, observer-pattern, doctrine, pubsub

## Member repositories
- doctrine/event-manager (main) score 83

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:34.586328+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:48:57.017356+00:00, confidence not recorded.
  - readme: https://github.com/doctrine/event-manager (fetched 2026-08-28T04:09:34.586328+00:00, sha eaabccfbe433)
  - homepage: https://www.doctrine-project.org/projects/event-manager.html (fetched 2026-08-29T08:45:17.910999+00:00, sha 71e80984921e)
  - site_page: https://www.doctrine-project.org/projects/doctrine-event-manager/en/2.1/index.html (fetched 2026-08-29T08:45:17.913370+00:00, sha f05d92ef9137)
  - site_page: https://www.doctrine-project.org/projects/doctrine-event-manager/en/latest/index.html (fetched 2026-08-29T08:45:17.915072+00:00, sha a88f642887b4)
  - site_page: https://www.doctrine-project.org/projects/doctrine-event-manager/en/2.0/index.html (fetched 2026-08-29T08:45:17.916562+00:00, sha 4ea4d4984618)
  - site_page: https://www.doctrine-project.org/projects/doctrine-event-manager/en/1.2/index.html (fetched 2026-08-29T08:45:17.918038+00:00, sha efd0cadb19a4)
  - site_page: https://www.doctrine-project.org/projects/doctrine-event-manager/en/1.1/index.html (fetched 2026-08-29T08:45:17.919631+00:00, sha b8d31e71e16d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
