awesome-repositories.com
Blog
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 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·2 vues

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.

Historique des stars

Graphique de l'historique des stars pour phpdocumentor/typeresolverGraphique de l'historique des stars pour phpdocumentor/typeresolver

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Questions fréquentes

Que fait phpdocumentor/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.

Quelles sont les fonctionnalités principales de phpdocumentor/typeresolver ?

Les fonctionnalités principales de phpdocumentor/typeresolver sont : Language, Import Alias Mappings, Identifier Resolutions, PHP Import Resolution, Namespace Resolvers, PHP Parsers, Qualified Name Resolution, PSR-5 Compliant Resolvers.

Quelles sont les alternatives open-source à phpdocumentor/typeresolver ?

Les alternatives open-source à phpdocumentor/typeresolver incluent : 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… 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… phpdocumentor/reflectiondocblock — ReflectionDocBlock is a PHP docblock parser and doc-comment metadata extractor. It functions as a reflection wrapper… antonmedv/expr — Expr is a high-performance expression evaluation engine and language for Go applications. It functions as a dynamic…

Alternatives open source à TypeResolver

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec TypeResolver.
  • masterminds/glideAvatar de Masterminds

    Masterminds/glide

    8,095Voir sur 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
    Voir sur GitHub↗8,095
  • nikic/php-parserAvatar de nikic

    nikic/PHP-Parser

    17,437Voir sur 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
    Voir sur GitHub↗17,437
  • chai2010/go-ast-bookAvatar de chai2010

    chai2010/go-ast-book

    5,510Voir sur 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
    Voir sur GitHub↗5,510
  • phpdocumentor/reflectiondocblockAvatar de phpDocumentor

    phpDocumentor/ReflectionDocBlock

    9,383Voir sur GitHub↗

    ReflectionDocBlock is a PHP docblock parser and doc-comment metadata extractor. It functions as a reflection wrapper that extends the standard PHP Reflection API to convert raw documentation blocks into structured objects. The library provides tools for PHP documentation parsing and reflection tooling. It enables the extraction of structured metadata and annotations from reflection objects or raw doc-comment strings to support automated API documentation and static code analysis.

    PHPdocblocks
    Voir sur GitHub↗9,383
  • Voir les 30 alternatives à TypeResolver→