sajadsdi/php-reflection
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| codememory/reflection | 0.89 | 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 | 11 months ago | |
| roave/better-reflection | 0.89 | 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,246 | 1,250 | 138 | 724K | 14 | 42.6 | 50.1 | MIT | 1 month ago | |
| ergebnis/classy | 0.89 | 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 | 13.7 | 46.9 | MIT | 8 months ago | |
| illuminate/reflection | 0.89 | Illuminate Reflection provides lightweight helpers around PHP’s Reflection API, used by Laravel to inspect classes, methods, and parameters. It supports resolving type information and attributes to power features like container autowiring, routing, and validation. | 37 | 37 | 2 | 2M | 0 | 0.3 | 55.3 | MIT | — | |
| brick/reflection | 0.89 | 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 | 6 months ago | |
| sebastian/object-reflector | 0.88 | Reflect object properties across a class hierarchy, including inherited, private, and protected members. sebastian/object-reflector provides a small utility for accessing and inspecting object state when PHP’s standard reflection APIs are inconvenient. | 6,272 | 6,277 | 3 | 16M | 1 | 46.1 | 56.3 | BSD-3-Clause | 1 month ago | |
| league/construct-finder | 0.86 | 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 | 33K | 0 | 0.4 | 39.5 | — | — | |
| fsi/reflection | 0.86 | 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 | — | |
| typhoon/reflection | 0.85 | 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 | 2 years ago | |
| phpdocumentor/reflection | 0.84 | 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 | 907K | 8 | 29.8 | 62.5 | MIT | 3 months ago | |
| andrewsville/php-token-reflection | 0.76 | 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 | 42 | 9K | 17 | 4.0 | 22.0 | NOASSERTION | — |
How can I help you explore Laravel packages today?