phpDocumentor/TypeResolver
A PSR-5 based resolver of Class names, Types and Structural Element Names observed · 2026-08-28
Health v2 · maintenance only
76/100
- Activity 75
- Release rhythm 65
- 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: 4.0
- age_days: 4102
- days_rel: 239
- days_push: 154
- n_releases_24m: 7
Adoption not part of the score
9158 stars · 51 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A PHP library that resolves DocBlock type expressions and structural element names according to PSR-5, turning partial class names into fully qualified names. It provides TypeResolver and FqsenResolver classes that return value objects for types like primitives, compounds, arrays, and FQSENs.
Use cases
- resolve docblock type annotations into type objects
- convert partial class names to fully qualified class names
- parse @var and @return type expressions in PHP docblocks
- resolve FQSENs for methods, properties, and constants
- build static analysis or documentation tools for PHP
When to choose
- you are building a PHP documentation generator or static analyzer
- you need PSR-5 compliant type parsing in PHP
- you need to resolve partial class names against a class context
When to avoid
- you need runtime type checking or validation of values
- you work outside the PHP ecosystem
- you need full static analysis rather than name/type resolution
Facets
library · maturity stable
parser developer-tools developer-tools documentation programming-languages php psr-5 docblock fqsen type-resolution static-analysis
1 source
- readme: https://github.com/phpDocumentor/TypeResolver · fetched 2026-08-28 · b7fc533a2969
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| phpDocumentor/TypeResolver | main | 76 |
For agents
markdown · JSON · MCP: product_card(name="phpDocumentor/TypeResolver")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem