awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
phpDocumentor avatar

phpDocumentor/TypeResolver

0
View on GitHub↗
9,180 stars·51 forks·PHP·MIT·12 views

TypeResolver

TypeResolver is a PHP namespace resolver and type parser designed to convert partial class and element names into fully qualified names. It functions as a utility for static code analysis, transforming complex type expressions and primitives into structured value objects.

The project implements PSR-5 standards to ensure consistent type referencing. It manages the resolution of structural elements by tracking current namespaces and alias contexts to expand partial identifiers into their full definitions.

The tool covers the parsing of compound type strings and the management of PHP imports and aliases. It utilizes a value-object based representation to handle structural element transformations and recursive type expression parsing.

Features

  • Language - Resolves partial names into fully qualified identifiers by tracking the current namespace and imported aliases.
  • Import Alias Mappings - Implements a lookup table for mapping imported short aliases to full structural definitions.
  • Identifier Resolutions - Converts shorthand references into fully qualified names by analyzing the surrounding code context.
  • PHP Import Resolution - Resolves imports and aliases to determine exactly which class or interface a specific name refers to.
  • Namespace Resolvers - Provides a utility for resolving structural elements and class references using current namespace and alias contexts.
  • PHP Parsers - Transforms complex type expressions and primitives into structured value objects for static analysis.
  • Qualified Name Resolution - Provides logic to resolve whether to use simple or fully qualified names for a type.
  • PSR-5 Compliant Resolvers - Converts partial class and element names into fully qualified names based on PSR-5 standards.
  • PHP Type Resolvers - Converts partial class and type names into fully qualified names based on namespace and alias contexts.
  • Language Element Resolutions - Transforms references to classes, interfaces, and methods into fully qualified structural element names.
  • PSR-5 Implementations - Implements the PSR-5 standard for structural element naming to ensure consistent type referencing.
  • Recursive Type Processing - Parses complex type strings into value objects using recursive type processing patterns.
  • Static Code Analyzers - Parses type expressions and compound strings into value objects for static analysis without execution.
  • Type Representation Objects - Encapsulates parsed type information within immutable value objects to ensure type safety during resolution.
  • Expression Type Resolution - Parses type strings including primitives and compounds into descriptive value objects.

Star history

Star history chart for phpdocumentor/typeresolverStar history chart for phpdocumentor/typeresolver

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to TypeResolver

Similar open-source projects, ranked by how many features they share with TypeResolver.
  • masterminds/glideMasterminds avatar

    Masterminds/glide

    8,095View on GitHub↗

    Glide is a Go dependency management tool that fetches, pins, and vendors external packages to enable reproducible builds across environments. It stores project-specific copies of Go packages in a vendor directory, isolating dependencies per project to avoid version conflicts, and supports fetching packages from Git, Mercurial, Bazaar, and Subversion repositories. The tool resolves dependency versions using semantic versioning ranges and operators, and generates a lock file that records exact commit IDs for all transitive dependencies. Glide distinguishes itself with an interactive version wiz

    Gogogolangpackage-management
    View on GitHub↗8,095
  • nette/php-generatornette avatar

    nette/php-generator

    2,253View on GitHub↗

    Php-generator is a metaprogramming library for programmatically generating, inspecting, parsing, and manipulating PHP source code using expressive object-oriented structures. It allows developers to construct classes, interfaces, traits, enums, functions, closures, and complete files without writing raw strings. The library features automated namespace resolution to manage fully qualified class names and use statements, preventing naming collisions in generated output. It also includes configurable formatting utilities that transform abstract syntax trees into text strings adhering to establ

    PHPcode-generatornettenette-framework
    View on GitHub↗2,253
  • chai2010/go-ast-bookchai2010 avatar

    chai2010/go-ast-book

    5,510View on GitHub↗

    go-ast-book is a collection of educational and technical resources focused on abstract syntax tree analysis, compiler development, and static code verification. It provides guides and manuals for parsing, traversing, and analyzing Go source code to extract semantic meaning. The project serves as a reference for building compiler frontends, covering the translation of high-level code into intermediate representations and single static assignment forms. It also provides instructions for using these techniques to develop language tooling and perform static code analysis. The resources cover a b

    Go
    View on GitHub↗5,510
  • nikic/php-parsernikic avatar

    nikic/PHP-Parser

    17,437View on GitHub↗

    PHP-Parser is a tool that converts PHP source code into an abstract syntax tree for static analysis and programmatic manipulation. It functions as a parser, a code generator, and a static analysis framework. The project enables the programmatic construction of abstract syntax tree nodes through a fluent interface and provides the ability to transform these trees back into formatted source code. It includes a serializer that exports abstract syntax trees to JSON format and reconstructs them from strings. The toolset covers several capability areas, including namespace resolution, constant exp

    PHP
    View on GitHub↗17,437
See all 30 alternatives to TypeResolver→

Frequently asked questions

What does phpdocumentor/typeresolver do?

TypeResolver is a PHP namespace resolver and type parser designed to convert partial class and element names into fully qualified names. It functions as a utility for static code analysis, transforming complex type expressions and primitives into structured value objects.

What are the main features of phpdocumentor/typeresolver?

The main features of phpdocumentor/typeresolver are: Language, Import Alias Mappings, Identifier Resolutions, PHP Import Resolution, Namespace Resolvers, PHP Parsers, Qualified Name Resolution, PSR-5 Compliant Resolvers.

What are some open-source alternatives to phpdocumentor/typeresolver?

Open-source alternatives to phpdocumentor/typeresolver include: nette/php-generator — Php-generator is a metaprogramming library for programmatically generating, inspecting, parsing, and manipulating PHP… phpdocumentor/reflectiondocblock — ReflectionDocBlock is a PHP docblock parser and doc-comment metadata extractor. It functions as a reflection wrapper… chai2010/go-ast-book — go-ast-book is a collection of educational and technical resources focused on abstract syntax tree analysis, compiler… masterminds/glide — Glide is a Go dependency management tool that fetches, pins, and vendors external packages to enable reproducible… nikic/php-parser — PHP-Parser is a tool that converts PHP source code into an abstract syntax tree for static analysis and programmatic… theseer/tokenizer — This library is a PHP source code tokenizer and static analysis tool that converts raw PHP code into discrete tokens…