symfony/deprecation-contracts
A generic function and convention to trigger deprecation notices observed · 2026-08-28
Health v2 · maintenance only
87/100
- Activity 89
- Release rhythm 78
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 52
- age_days: 2398
- days_rel: 67
- days_push: 67
- n_releases_24m: 2
Adoption not part of the score
2099 stars · 10 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A minimal PHP package providing a single global `trigger_deprecation()` function and convention for emitting deprecation notices from libraries. The notices can be captured and logged via a custom error handler such as Symfony's ErrorHandler component.
Use cases
- trigger deprecation notices in a php library
- warn users about deprecated api usage
- log silenced deprecations in dev and prod
- manage backward compatibility warnings across package versions
- standardize deprecation messages in composer packages
When to choose
- you maintain a PHP library or Symfony component and need a standard way to mark APIs as deprecated
- you want deprecations to be catchable and loggable by error handlers
- you need a tiny dependency with no runtime overhead
When to avoid
- you need a full deprecation detection or static analysis tool rather than a trigger convention
- your project is not PHP-based
- you want automatic code migration suggestions
Facets
library · maturity stable
logging error-handling developer-tools developer-tools apis php cli deprecation-notices symfony-contracts php-library backward-compatibility php
6 sources
- readme: https://github.com/symfony/deprecation-contracts · fetched 2026-08-28 · 174b9acbcf94
- homepage: https://symfony.com · fetched 2026-08-29 · 68595089eb73
- site_page: https://symfony.com/doc · fetched 2026-08-29 · 44889134f4fb
- site_page: https://symfony.com/doc/current/contributing/community/releases.html · fetched 2026-08-29 · 43441105b0a6
- site_page: https://symfony.com/releases · fetched 2026-08-29 · 5bd749e2b676
- site_page: https://symfony.com/blog/category/releases · fetched 2026-08-29 · d8584ccbba1c
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| symfony/deprecation-contracts | main | 87 |
For agents
markdown · JSON · MCP: product_card(name="symfony/deprecation-contracts")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem