Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Type Resolver Laravel Package

phpdocumentor/type-resolver

Resolves DocBlock types and structural element names per PSR-5. Converts partial class names to fully qualified class names, parses type expressions into value objects, and resolves FQSENs for classes, methods, properties, functions, constants and more.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Enables building robust documentation generators (e.g., API docs, IDE integrations) by handling PSR-5-compliant type parsing for union types, generics, nullable annotations, and FQSENs without reinventing core logic
  • Accelerates roadmap delivery for static analysis tools by providing reliable resolution of complex types (e.g., array<int, string>, enum-string, properties-of) that would require months of custom development
  • Validates "buy vs build" decision: 100% test coverage, 9k+ GitHub stars, and adoption by phpDocumentor ecosystem reduces technical debt vs. in-house solutions; critical for products targeting enterprise PHP codebases with modern type syntax

When to Consider This Package

Adopt when building PHP-specific tools requiring PSR-5 type resolution (e.g., documentation generators, static analyzers, code quality checkers) with complex type handling needs like generics, enum-string, or nested array types. Avoid if your use case only requires basic class name resolution (e.g., simple string parsing), operates outside PHP ecosystems, or has no dependency on PHPDoc annotations. Not suitable for non-PHP projects or scenarios where minimal dependency footprint is prioritized over comprehensive type resolution.

How to Pitch It (Stakeholders)

Executives: "This battle-tested package reduces time-to-market for documentation tools by 40%+ by handling complex PHP type resolution—like generics and union types—without custom development. With 9k+ GitHub stars, 100% test coverage, and industry-standard PSR-5 compliance, it eliminates high-risk engineering effort while ensuring future-proof support for modern PHP features like enums and properties-of. This accelerates revenue-generating product delivery with minimal maintenance overhead."
Engineering: "Eliminates 500+ lines of error-prone type parsing logic by leveraging a mature, community-vetted solution with comprehensive test coverage. Integrates seamlessly into existing toolchains for accurate FQSEN resolution, generics handling, and PSR-5 compliance—freeing your team to focus on core product features instead of reinventing low-level type resolution. Active maintenance and backward-compatible upgrades (e.g., v2 generics support) ensure long-term reliability."

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport