typhoon/reflection
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).
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| roave/better-reflection | 0.86 | 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 | |
| sajadsdi/php-reflection | 0.85 | 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 | |
| brick/reflection | 0.85 | 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 | |
| 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 | 444 | 1 | 0.2 | 24.2 | MIT | — | |
| league/construct-finder | 0.85 | Locate PHP code constructs (classes, interfaces, traits, enums) within one or more directories. Returns construct objects or just names, with type-specific finders and support for excluding files via simple wildcard patterns. | 44 | 44 | 5 | 37K | 0 | 0.4 | 40.3 | — | — | |
| codememory/reflection | 0.84 | Cacheable alternative to PHP’s Reflection API. Uses a Symfony Cache adapter to store class metadata (names, methods, properties, types, attributes) for faster repeat reflection in production, with a dev mode toggle via ReflectorManager. | 2 | 2 | 0 | 3 | 0 | 8.5 | 4.3 | MIT | 9 months ago | |
| phpdocumentor/reflection | 0.83 | 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 | |
| raphhh/trex-reflection | 0.80 | 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.78 | — | 6 | 7 | 0 | 4 | 0 | 0.9 | 1.9 | MIT | 11 years ago |
How can I help you explore Laravel packages today?