# symfony/error-handler

Provides tools to manage errors and ease debugging PHP code

Repository: https://github.com/symfony/error-handler
Canonical: https://ross.abutalabs.com/products/error-handler
Homepage: https://symfony.com/error-handler
Language: PHP
License: MIT
License Family: permissive
Topics: php, symfony, component, symfony-component
Last push: 2026-08-25T12:15:53+00:00

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

## Adoption (not part of the score)
Stars 2670, forks 20 (observed 2026-08-28T04:07:09.404226+00:00)

## What it is
The Symfony ErrorHandler component provides tools to manage errors and ease debugging PHP code, converting PHP errors and notices into exceptions and rendering debug error pages. It is a standalone Composer-installable library used by many major PHP projects.

## Use cases
- turn PHP errors and warnings into catchable exceptions
- show detailed debug error pages during development
- wrap code so any failure throws an exception even with the @ silence operator
- render custom generic error pages in production
- improve class error messages with DebugClassLoader

## When to choose
- you want robust, battle-tested error handling in any PHP project
- you need nice exception pages while debugging
- you want errors converted to exceptions consistently across legacy code

## When to avoid
- you need application performance monitoring or APM rather than error handling
- your framework already provides its own error handling layer you prefer

## Facets
- artifact type: library
- maturity: stable
- function: error-handling, logging, developer-tools
- domain: developer-tools, web-development, backend
- platform: php, cross-platform
- tags: symfony-component, exception-handling, debugging, php, error-pages

## Member repositories
- symfony/error-handler (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:09.404226+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-30T02:18:12.051446+00:00, confidence not recorded.
  - readme: https://github.com/symfony/error-handler (fetched 2026-08-28T04:07:09.404226+00:00, sha f6b0dbd15499)
  - homepage: https://symfony.com/error-handler (fetched 2026-08-29T10:00:50.691478+00:00, sha 5eae7db80e62)
  - site_page: https://symfony.com/doc (fetched 2026-08-29T10:00:50.700664+00:00, sha 44889134f4fb)
  - site_page: https://symfony.com/doc/current/controller/error_pages.html (fetched 2026-08-29T10:00:50.702782+00:00, sha fab0d3785c8f)
  - site_page: https://symfony.com/projects/phpmyfaq (fetched 2026-08-29T10:00:50.705117+00:00, sha e28d7c56f0d8)
  - site_page: https://symfony.com/releases (fetched 2026-08-29T10:00:50.707183+00:00, sha 2fd410222cfe)
  - site_page: https://symfony.com/blog/category/releases (fetched 2026-08-29T10:00:50.709350+00:00, sha 83b70dd163fb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
