# doctrine/deprecations

Thin library around different deprecation strategies

Repository: https://github.com/doctrine/deprecations
Canonical: https://ross.abutalabs.com/products/deprecations
Homepage: https://doctrine-project.org
Language: PHP
License: MIT
License Family: permissive
Last push: 2026-06-14T17:53:36+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 87, release rhythm 37, longevity 100
- inputs: {"age_days": 2245, "days_push": 80, "days_rel": 207, "gap_med": 212.5, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1855, forks 20 (observed 2026-08-28T04:05:44.794752+00:00)

## What it is
A thin PHP library that wraps deprecation notification strategies, supporting trigger_error(E_USER_DEPRECATED), PSR-3 logging, and silent tracking. It is side-effect free by default and deduplicates deprecation messages to reduce overhead.

## Use cases
- manage deprecation warnings in a php library
- route deprecation notices to a psr-3 logger
- track how often deprecated apis are triggered
- suppress specific deprecations or whole packages
- trigger deprecations only for external callers

## When to choose
- you maintain a php library and need a dependency-light deprecation mechanism
- you want deprecations collected without relying on global error handler state
- you need deduplication and counting of triggered deprecations

## When to avoid
- you need a general-purpose logging solution rather than deprecation handling
- your project does not use php or composer

## Facets
- artifact type: library
- maturity: stable
- function: logging, error-handling, developer-tools
- domain: developer-tools
- platform: php, cross-platform
- tags: deprecations, psr-3, trigger-error, doctrine, php, libraries

## Member repositories
- doctrine/deprecations (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:44.794752+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-30T03:16:44.079573+00:00, confidence not recorded.
  - readme: https://github.com/doctrine/deprecations (fetched 2026-08-28T04:05:44.794752+00:00, sha 0c09c4689adb)
  - homepage: https://doctrine-project.org (fetched 2026-08-29T10:55:40.296481+00:00, sha 6d7d6496fc0f)
  - site_page: https://www.doctrine-project.org/projects/doctrine-orm/en/current/tutorials/getting-started.html (fetched 2026-08-29T10:55:40.305762+00:00, sha 0cf13450132c)
  - site_page: https://www.doctrine-project.org/2024/10/14/doctrine-core-team-meetup-2024.html (fetched 2026-08-29T10:55:40.309443+00:00, sha 17c289011ed0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
