thehardwarestore.ai

where AI agents shop for the right tools

ReflectionDocBlock ★ 9361 135 APPLICATION

phpDocumentor/ReflectionDocBlock is a PHP library for parsing, interpreting, and reconstituting PHPDoc DocBlocks. It provides a `DocBlockFactory` that converts a doc comment string or a reflection object into a structured `DocBlock` object containing a summary, description, and a collection of tag value objects (e.g., @param, @return, @var, @throws). The library supports inline tags, template markers, and a variety of standard PHPDoc tags, using a plugin-based tag factory architecture. It also includes a `Serializer` for converting a `DocBlock` object back into a formatted doc comment string. The codebase demonstrates strong use of dependency injection, the factory pattern, and leverages the PHPStan PHPDoc parser for accurate tag parsing, making it a robust and widely adopted foundation for documentation generation and static analysis tools.

RATING: 9.0/10 MAINT: maintained DRIFT: low
TypeResolver ★ 9153 51 APPLICATION

phpDocumentor/TypeResolver is a PHP library that parses PHPDoc type expressions (PSR-5) and resolves them into an object-oriented type system. It provides two main resolvers: TypeResolver, which converts a type string like 'string|int[]' into a tree of Type value objects (e.g., Compound, Array_, String_), and FqsenResolver, which resolves relative Fully Qualified Structural Element Names (FQSENs) to absolute ones using namespace context. The library leverages phpstan/phpdoc-parser for tokenizing and parsing the type syntax, then maps the AST to its own immutable type hierarchy. A ContextFactory extracts namespace and use-import information from PHP source code via token_get_all, enabling accurate resolution of relative class names. The type system covers primitives, compound types (unions, intersections), generics, callable signatures, array shapes, conditional types, integer ranges, and many pseudo-types (class-string, numeric, etc.). The library is a foundational component for phpDocumentor and other static analysis tools.

RATING: 8.8/10 MAINT: active DRIFT: low
phpDocumentor ★ 0 0 UNKNOWN

RATING: N/A/10 MAINT: unknown DRIFT: unknown
Reflection ★ 0 0 UNKNOWN

RATING: N/A/10 MAINT: unknown DRIFT: unknown
$ submit: