phpdocumentor/typeresolver

A PSR-5 based resolver of Class names, Types and Structural Element Names

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 22 minutes ago
Added to GitGenius on September 7th, 2026
Created on June 10th, 2015
Open Issues & Pull Requests: 11 (+0)
GitHub issues: Enabled
Number of forks: 52
Total Stargazers: 9,158 (+0)
Total Subscribers: 14 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 2.9 hours
Mean response time: 174.7 days
90th percentile: 989.0 days
Tracked items: 12

Most active contributors

Sign in to see contributor activity.

Related repositories by overlapping contributors

How this project is maintained

Around half of the issues opened in the past year never receive a reply. Only 8% of issues opened in the past year have been closed. Three people close 100% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 1
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 274 days
Stale 30+ days: 1
Stale 90+ days: 1

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

TypeResolver is a PHP library that resolves class names, types, and structural element names according to the PSR-5 specification for DocBlocks.

The library addresses the problem of parsing and normalizing type declarations found in PHP documentation comments. It provides two main resolvers: TypeResolver handles primitive types, composites like arrays, compound types using union syntax, and class or interface references; FqsenResolver handles fully qualified structural element names, enabling resolution of constants, functions, classes, interfaces, traits, class constants, properties, and methods. Both resolvers can expand partial class names into fully qualified class names when given appropriate namespace context and import information.

Developers should adopt this tool when building documentation generators, static analysis tools, or any system that needs to parse and normalize PHP type hints from DocBlocks. It is particularly valuable for projects that must handle namespace resolution and convert relative class references into fully qualified names. The library's dual-resolver design means you choose TypeResolver for type expressions and FqsenResolver for references to code elements, depending on what your DocBlock parsing needs to accomplish.

The project maintains a steady stream of commits across its codebase with regular updates to core functionality. Pull requests are reviewed and merged consistently, indicating active maintenance. Issues receive responses and are addressed through code changes, demonstrating engagement with user needs. The test suite is regularly updated alongside feature work, suggesting a commitment to code quality as the project evolves.