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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| helmich/typo3-typoscript-parser | 0.86 | — | 36 | 36 | 11 | 133K | 8 | 7.3 | 51.3 | — | 1 year ago | |
| ergebnis/classy | 0.84 | ergebnis/classy adds convenient helpers for working with PHP classes and reflection. Generate class names, namespaces, and short names, and inspect class metadata in a clean, test-friendly way—useful for tooling, libraries, and code generation. | 39 | 39 | 4 | 60K | 0 | 14.7 | 46.9 | MIT | 7 months ago | |
| goaop/dissect | 0.84 | — | 2 | 3 | 1 | 7K | 0 | 14.0 | 54.0 | MIT | 4 months ago | |
| roave/better-reflection | 0.83 | Enhanced PHP reflection for static analysis: reflect classes without loading them, from PHP code strings or closures, extract AST from functions/methods, and read type declarations and docblocks. Feature-rich but slower than native reflection. | 1,245 | 1,249 | 137 | 584K | 14 | 44.0 | 49.2 | MIT | 2 weeks ago | |
| typhoon/reflection | 0.82 | Static, fast alternative to PHP’s native Reflection. Reflects code without running or autoloading it, uses lazy loading + caching, and stays compatible with native reflection. Supports Psalm/PHPStan phpDoc types, template resolution, and avoids memory leaks (safe with zend.enable_gc=0). | 40 | 39 | 3 | 3K | 3 | 5.3 | 25.9 | MIT | 1 year ago | |
| brick/reflection | 0.81 | 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 | 4 months ago | |
| andrewsville/php-token-reflection | 0.77 | PHP library for reflecting and analyzing PHP token streams. Parse source code into tokens and inspect structures like classes, functions, namespaces, and docblocks—useful for static analysis, code generation, and tooling without executing the code. | 190 | 190 | 43 | 9K | 17 | 4.0 | 22.0 | NOASSERTION | — | |
| phpdocumentor/reflection | 0.77 | Static PHP code reflection library that parses one or more files (no execution) to build an object graph of your application's structure, including DocBlocks. Supports analyzing PHP versions from 5.2 up to your installed PHP version; useful for reflecting whole projects. | 125 | 126 | 60 | 944K | 8 | 31.6 | 63.8 | MIT | 2 months ago | |
| sajadsdi/php-reflection | 0.75 | Lightweight wrapper around PHP’s built-in Reflection API. Inspect classes by name or instance and quickly fetch ReflectionClass plus lists of properties, methods, and constants. Simple Reflections helper for common reflection tasks. | 1 | 1 | 0 | 0 | 0 | 0.3 | — | MIT | 2 years ago | |
| raphhh/trex-reflection | 0.68 | Lightweight PHP reflection helper focused on analyzing types, classes and members with a cleaner API than native Reflection. Great for tooling, static analysis, and code generation tasks—extract signatures, docblocks, visibility, and metadata with minimal boilerplate. | 14 | 14 | 3 | 7K | 0 | 2.6 | 36.8 | MIT | 6 years ago | |
| skagarwal/reflection | 0.67 | — | 6 | 7 | 0 | 4 | 0 | 0.9 | 1.9 | MIT | 11 years ago |
How can I help you explore Laravel packages today?