goaop/parser-reflection
AST-based Reflection API for PHP: introspect classes, methods, and properties directly from source code without autoloading or executing anything. Built on nikic/php-parser and compatible with native Reflection classes—ideal for static analyzers, code generators, and IDE tooling.
getModifiers() in PR #152) to mitigate risks.@Validate decorators) without reflection overhead.@ApiResource) to auto-generate OpenAPI/Swagger schemas or Markdown docs.@Cache, @RateLimit) for AOP-like middleware without proxies.getModifiers()).Reflection APIs, especially for large-scale static analyzers (e.g., custom PHPStan rules, IDE plugins).ReflectionClass/ReflectionMethod.For Executives: *"Parser Reflection 3.1.0 is now the definitive PHP 8.2+ toolkit for static analysis and metadata-driven development. Key impacts:
For Engineering: *"Parser Reflection 3.1.0 is now a PHP 8.2+ supercharger—here’s how to use it:
@Route, @Inject) without runtime overhead.Reflection for static analysis (PR #133).
Tradeoffs: Steeper learning curve than Reflection, but unmatched precision for AST tools. Let’s scope a proof-of-concept (e.g., a Laravel Attributes-based caching layer) to compare it against ReflectionClass."*How can I help you explore Laravel packages today?