codememory/reflection
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 | |
| alexanevsky/getter-setter-accessor-bundle | 0.82 | — | 1 | 1 | 0 | 0 | 0 | 0.0 | — | MIT | — | |
| sajadsdi/php-reflection | 0.82 | 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 | |
| phpdocumentor/reflection | 0.82 | 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. | 124 | 126 | 60 | 907K | 8 | 26.3 | 60.9 | MIT | 5 months 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 | 823 | 1 | 0.2 | 27.8 | MIT | — | |
| illuminate/reflection | 0.81 | Illuminate\Reflection wraps PHP's native ReflectionClass with Laravel-specific helpers for inspecting methods, properties, traits, attributes, and doc comments. It underpins the service container, route model binding, and much of the framework's internal introspection. | 34,987 | 37 | 12,028 | 1M | 55 | 78.2 | 58.1 | MIT | 3 days ago | |
| roave/better-reflection | 0.80 | Better Reflection is a PHP reflection API for static analysis: reflect on classes without loading them, parse classes from strings, inspect closures, and extract AST and type information. It prioritizes features over speed, so it is not intended for runtime use. | 1,248 | 1,253 | 138 | 1M | 14 | 44.3 | 54.1 | MIT | 2 weeks 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). | 40 | 39 | 3 | 3K | 3 | 5.3 | 25.9 | MIT | 2 years ago | |
| goaop/parser-reflection | 0.75 | 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. | 101 | 101 | 50 | 30K | 4 | 27.1 | 40.7 | MIT | 4 days ago | |
| beste/in-memory-cache | 0.69 | A PSR-6 in-memory cache for PHP that works as a sensible default implementation and in tests. It supports PSR-20 clocks, including frozen clocks, so you can test time-based expiry without a real cache server. Simple, fast, and dependency-free. Install with composer require beste/in-memory-cache. | 26 | 26 | 0 | 2M | 0 | 18.9 | 63.2 | MIT | 2 months ago |
How can I help you explore Laravel packages today?