goaop/parser-reflection
Parser Reflection brings PHP's Reflection API to static analysis: parse source files into an AST and introspect classes, methods, and properties without autoloading, including, or executing code. Drop-in compatible with native Reflection classes for analyzers, generators, and IDE tooling.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| php-static-analysis/psalm-plugin | 0.86 | A Psalm plugin for PHP static analysis that extends Psalm with additional checks and integrations, helping teams catch issues earlier and enforce consistent code quality in their projects. | 2 | 2 | 1 | 2K | 0 | 0.3 | 37.4 | MIT | 1 year ago | |
| php-static-analysis/attributes | 0.86 | PHP attributes that let you annotate classes, methods, and properties with metadata for static analysis tools, improving type inference, purity checks, and IDE support. Lightweight, framework-agnostic, and easy to drop into existing codebases. | 94 | — | 0 | — | 0 | 0.5 | — | MIT | 1 year ago |
|
| phpstan/phpstan-php-parser | 0.86 | PHPStan extension for nikic/php-parser that adds precise type inference for AST nodes and visitors, improving static analysis of code that parses, traverses, or manipulates PHP source. | 23 | 23 | 8 | 19K | 1 | 0.3 | 28.3 | — | 4 years ago | |
| sebastian/peek-and-poke | 0.85 | sebastian/peek-and-poke is a small PHP utility that uses reflection to peek at and poke into objects. It lets you read and write private and protected properties, making it handy for tests that need to inspect or set up object state without changing production code. | 36 | 34 | 8 | 117 | 1 | 0.3 | 6.0 | NOASSERTION | — | |
| mpociot/reflection-docblock | 0.85 | Parse and work with PHP DocBlocks via reflection. mpociot/reflection-docblock extracts summaries, descriptions, tags, params, and return types from classes, methods, and properties, making it easy to generate documentation or build tooling that relies on DocBlock metadata. | 85 | 85 | 4 | 1M | 2 | 1.5 | 55.1 | MIT | 10 years ago | |
| phpdocumentor/reflection-common | 0.85 | ReflectionCommon provides the shared interfaces and base classes behind phpDocumentor's reflection layer, defining common contracts for elements, types, and locations used across the ecosystem. A lightweight, dependency-free foundation for building reflection-based tooling in PHP. | 9,031 | 9,044 | 22 | 12M | 0 | 47.6 | 50.4 | MIT | 1 month ago | |
| igor-php/igor-php | 0.85 | Igor is an open-source Laravel/PHP package installable via Composer. It follows framework conventions and offers a clean, expressive API, making it easy to integrate into existing applications and extend for your own use cases while keeping the dependency lightweight and maintainable. | 131 | — | 5 | — | 9 | 22.1 | 4.4 | MIT | 1 month ago |
|
| fsi/reflection | 0.85 | Optimized Reflection for PHP 5.3 that caches ReflectionClass/Method/Property objects via factory() so they’re never created twice. Returned methods/properties are pre-set accessible for private/protected access; some uncached operations throw exceptions. | 7 | 8 | 3 | 823 | 1 | 0.2 | 27.8 | MIT | — | |
| graham-campbell/analyzer | 0.85 | Analyzer is a PHP package by Graham Campbell that checks whether referenced classes actually exist. It helps catch missing or mistyped class references, supports PHP 8.1-8.5, and integrates with PHPUnit 10-13 for test-time analysis. | 0 | 32 | — | 8K | — | 9.3 | 53.7 | — | — | |
| dave-liddament/php-language-extensions | 0.85 | PHP Language Extensions adds attributes for immutable classes, pure functions, read-only properties, and named parameters, with PHPStan rules to enforce them. Bring stronger safety and clearer APIs to PHP without waiting for new syntax. | 196 | 196 | 5 | 27K | 3 | 3.1 | 30.6 | MIT | 11 months ago | |
| phpstan/phpdoc-parser | 0.85 | phpstan/phpdoc-parser parses PHPDocs into a typed AST so you can read and modify docblocks programmatically. It handles rich types like unions, generics, array shapes, callables, and conditional types, plus Doctrine annotations. Powers PHPStan. | 1,541 | 1,540 | 79 | 20M | 6 | 42.4 | 71.7 | MIT | 1 week ago | |
| veewee/reflecta | 0.84 | Reflecta is a PHP library for fast, reflection-based class inspection, letting you read properties, methods, and attributes without instantiating objects. Useful for building analyzers, mappers, and framework tooling. | 14 | 14 | 1 | 90K | 0 | 19.5 | 60.9 | MIT | 3 weeks ago | |
| laravel/pao | 0.84 | Laravel PAO detects when PHP tools like PHPUnit, Pest, PHPStan, Rector, and Artisan run inside AI agents such as Claude Code or Cursor, swapping verbose output for compact structured JSON. Zero config, works with any PHP project, PHP 8.3+. | 728 | 726 | 38 | 8M | 0 | 28.4 | 63.9 | MIT | 1 month ago | |
| etsglobal/php-static-analysis | 0.84 | A PHP static analysis package from ETS Global for inspecting PHP codebases and supporting code quality workflows. Integrates into Laravel/PHP projects to help surface potential issues, encourage cleaner code, and complement existing test and CI pipelines with additional static checks. | 0 | 0 | — | 50 | — | 0.0 | 23.6 | — | — | |
| brick/reflection | 0.84 | Low-level PHP 8.1+ helpers extending native reflection. ReflectionTools can list all instance methods/properties across inheritance (including private parents), get class hierarchies, and create reflections for any callable with meaningful function names. | 23 | 24 | 3 | 6K | 1 | 17.8 | 37.1 | MIT | 7 months ago | |
| php-static-analysis/phpstan-extension | 0.84 | A PHPStan extension for PHP projects that adds custom rules and configuration to strengthen static analysis. Integrate it with PHPStan to catch potential issues earlier, enforce coding standards, and improve overall code quality in your development workflow. | 15 | 15 | 0 | 2K | 0 | 0.1 | 30.0 | MIT | 1 year ago | |
| vanio/type-parser | 0.84 | Vanio Type Parser is a lightweight PHP library that turns type declaration strings—unions, intersections, nullable types, generics, arrays and callables—into structured, inspectable objects, making it easy to analyze, validate and manipulate type information for reflection, tooling and code generati... | 7 | 9 | 0 | 342 | 0 | 0.0 | 22.7 | MIT | — | |
| psalm/psalm-plugin-api | 0.84 | Psalm plugin API providing interfaces and helpers to build and integrate custom plugins with the Psalm static analysis tool, enabling extensions such as new checks, type providers, and project-specific analysis behavior. | 1 | 0 | 0 | 262K | 0 | 0.0 | 55.3 | — | — | |
| imanghafoori/php-token-analyzer | 0.84 | Analyzes PHP code tokens without execution—like reflection but pure PHP. Framework-agnostic, lightweight dependency extracted from Laravel-Microscope. Supports PHP 7.4+ with automated tests for accuracy. Extract class/method details, token types, and structure effortlessly. Ideal for static analysis... | 16 | 16 | 4 | 9K | 0 | 0.6 | 37.7 | — | 4 years ago | |
| voku/phpstan-rules | 0.84 | Additional PHPStan rules to catch risky and redundant condition logic and comparisons. Detects double negatives, PHP 8 behavior changes (0 vs ''), insane/invalid comparisons (0=='0foo', 0==='0'), and type-mismatch checks (e.g., object vs non-object). | 33 | 33 | 1 | 7K | 1 | 0.5 | 32.1 | MIT | — |
How can I help you explore Laravel packages today?