drenso/phan-extensions
PhanExtensions provides plugins and stubs for Phan static analysis: Symfony annotation import checking, docblock @method/@throws usage, and inline var comment scanning. Includes stubs for curl, intl, ldap, pdo, radius, and sockets. Not actively maintained.
Improved Code Quality & Developer Experience:
curl, intl, pdo) without manual stub creation, accelerating onboarding for legacy or extension-heavy codebases.Roadmap for PHP Static Analysis:
Build vs. Buy:
Use Cases:
ldap, radius) to enable Phan analysis in unsupported directories.Adopt if:
@Route, @ParamConverter) and Phan generates excessive false positives.curl, pdo) but lack custom stubs for Phan analysis.Look Elsewhere if:
@mixin).ThrowsPlugin, are obsolete).*"This package lets us supercharge our PHP static analysis with minimal effort. By integrating these Phan extensions, we can:
pdo, ldap), enabling deeper code analysis without manual work.*"This is a drop-in solution to fix two pain points in our Phan setup:
SymfonyAnnotationPlugin silences false positives for @Route, @ParamConverter, etc., without custom rules.curl, intl, etc., let us analyze extension-heavy code without writing boilerplate.
How to sell it internally:phan.config.php and test in a staging environment. If it cuts warnings by 20%, we’re winning."*How can I help you explore Laravel packages today?