raphhh/trex-reflection
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| illuminate/reflection | 0.86 | 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. | 0 | 37 | — | 637K | — | 0.3 | 55.3 | — | — | |
| sajadsdi/php-reflection | 0.83 | 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 | |
| kkszymanowski/traitor | 0.81 | Traitor brings traits to Eloquent like first-class relations. Define reusable, composable model fragments and access them via $model->traitName, eager load with with('traitName'), and query through them—keeping models slim while sharing behavior and attributes. | 130 | 130 | 3 | 125K | 1 | 3.5 | 41.1 | MIT | 2 years ago | |
| fsi/reflection | 0.81 | 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 | 451 | 1 | 0.2 | 24.4 | MIT | — | |
| phpdocumentor/reflection-common | 0.81 | Shared building blocks for phpDocumentor’s reflection ecosystem. Provides common value objects and utilities used by reflection packages, helping model PHP code elements consistently for parsing, analysis, and documentation tooling. | 9,059 | 9,068 | 21 | 9M | 0 | 29.2 | 41.9 | MIT | 5 years ago | |
| laragraph/utils | 0.80 | Laravel utilities for building GraphQL servers: shared primitives and helpers used by GraphQL packages. Install via Composer and use as a lightweight foundation for SDL-first (Lighthouse) or code-first (graphql-laravel) setups. | 21 | 21 | 8 | 555K | 0 | 20.2 | 62.6 | MIT | 3 months ago | |
| typhoon/reflection | 0.80 | 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). | 39 | 37 | 3 | 2K | 1 | 4.7 | 23.9 | MIT | 1 year ago | |
| brick/reflection | 0.79 | 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 | 23 | 3 | 6K | 1 | 21.2 | 37.2 | MIT | 2 months ago | |
| skagarwal/reflection | 0.79 | — | 6 | 7 | 0 | 1 | 0 | 0.9 | 0.6 | MIT | 10 years ago | |
| andrewsville/php-token-reflection | 0.79 | 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 | 12K | 17 | 4.0 | 23.0 | NOASSERTION | — | |
| roave/better-reflection | 0.79 | 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,241 | 1,245 | 137 | 326K | 14 | 42.8 | 45.4 | MIT | 1 month ago |
How can I help you explore Laravel packages today?