# doctrine/reflection

The Doctrine Reflection project is a simple library used by the various Doctrine projects which adds some additional functionality on top of the reflection API that comes with PHP. It allows you to get the reflection information about classes, methods and properties statically.

Repository: https://github.com/doctrine/reflection
Canonical: https://ross.abutalabs.com/products/reflection
Homepage: https://www.doctrine-project.org/projects/reflection.html
Language: PHP
License: MIT
License Family: permissive
Topics: reflection
Archived: true
Last push: 2023-08-23T14:16:52+00:00

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

## Adoption (not part of the score)
Stars 2896, forks 18 (observed 2026-08-28T04:07:28.689261+00:00)

## What it is
A PHP library from the Doctrine project that extends PHP's built-in reflection API, allowing static retrieval of reflection information about classes, methods, and properties. It is now abandoned, with useful features moved to doctrine/persistence.

## Use cases
- inspect php classes statically without loading them
- get reflection info about methods and properties
- extend php's reflection api with extra functionality
- support doctrine orm and other doctrine projects
- analyze class metadata in php tooling

## When to choose
- you maintain a legacy codebase already depending on doctrine/reflection
- you need the exact doctrine reflection api for compatibility

## When to avoid
- starting a new project - the package is abandoned
- you want actively maintained reflection features - use roave/better-reflection or doctrine/persistence

## Facets
- artifact type: library
- maturity: abandoned
- function: developer-tools
- domain: developer-tools, programming-languages
- platform: php
- tags: reflection, php, doctrine, static-analysis, abandoned

## Member repositories
- doctrine/reflection (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:28.689261+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-30T07:35:15.330259+00:00, confidence not recorded.
  - readme: https://github.com/doctrine/reflection (fetched 2026-08-28T04:07:28.689261+00:00, sha a274e8340bc0)
  - homepage: https://www.doctrine-project.org/projects/reflection.html (fetched 2026-08-29T09:50:07.185889+00:00, sha e3e0ea03f700)
  - site_page: https://www.doctrine-project.org/projects/doctrine-reflection/en/1.2/index.html (fetched 2026-08-29T09:50:07.195099+00:00, sha 461a082a4655)
  - site_page: https://www.doctrine-project.org/projects/doctrine-reflection/en/1.1/index.html (fetched 2026-08-29T09:50:07.197021+00:00, sha 50576a85cfda)
  - site_page: https://www.doctrine-project.org/projects/doctrine-reflection/en/1.0/index.html (fetched 2026-08-29T09:50:07.198601+00:00, sha af30c6351037)
- Data as of 2026-08-30T08:39:29.467469+00:00.
