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
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| brick/reflection | 0.91 | 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 | 3 months ago | |
| 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 | 0 | 0 | 11.0 | — | MIT | 8 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,241 | 1,245 | 137 | 326K | 14 | 42.8 | 45.4 | 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 | 62K | 0 | 17.4 | 48.2 | MIT | 5 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. | 0 | 37 | — | 637K | — | 0.3 | 55.3 | — | — | |
| 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,282 | 6,286 | 3 | 13M | 1 | 39.1 | 51.1 | BSD-3-Clause | 4 months ago | |
| typhoon/reflection | 0.88 | 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.8 | MIT | 1 year 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 | 42K | 0 | 0.4 | 41.1 | — | — | |
| 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 | 451 | 1 | 0.2 | 24.4 | MIT | — | |
| phpdocumentor/reflection | 0.86 | Static PHP code reflection library that parses files without executing them. Builds an object graph of your project’s structure, including DocBlocks. Can analyze code from PHP 5.2 up to your installed version; suitable for reflecting whole files or projects. | 125 | 126 | 61 | 2M | 8 | 34.6 | 67.2 | MIT | 2 weeks ago | |
| cakephp/cakephp-codesniffer | 0.58 | CakePHP coding standard for PHP_CodeSniffer. Fully PSR-12 compliant plus additional CakePHP-specific sniffs and fixers. Install via Composer and run phpcs with --standard=CakePHP (or use a phpcs.xml) to check and auto-fix your code. | 231 | 237 | 84 | 211K | 4 | 20.1 | 44.1 | MIT | 8 months ago | |
| sirbrillig/phpcs-import-detection | 0.58 | PHPCS sniffs that warn when classes/functions/constants are used without an explicit import or fully-qualified name, and flags unused imports. Helps catch namespace issues during refactors (note: PHP 8 tokenization bug/performance caveats). | 32 | 32 | 7 | 8K | 10 | 8.4 | 36.3 | NOASSERTION | 3 years ago | |
| phpcsstandards/phpcsdevtools | 0.58 | Developer tools for building and maintaining PHP_CodeSniffer standards. Helps scaffold sniffs, run and debug PHPCS rules, manage tests, and streamline local workflows so you can create, validate, and ship custom coding standards faster. | 17 | 17 | 6 | 16K | 4 | 4.3 | 43.5 | LGPL-3.0 | 1 year ago | |
| cakephp/utility | 0.57 | Lightweight CakePHP Utility library providing handy helpers for arrays, text, numbers, hashing, security, and type conversion. A standalone set of utility classes you can use inside or outside CakePHP to simplify common PHP tasks with minimal dependencies. | 121 | 124 | 10 | 570K | 0 | 0.9 | 50.9 | NOASSERTION | — | |
| squizlabs/php_codesniffer | 0.57 | PHP_CodeSniffer (PHPCS) provides phpcs to detect coding standard violations and phpcbf to automatically fix them. Tokenizes PHP files against defined standards to keep code clean and consistent, suitable for teams and CI. | 1,517 | 1,715 | 106 | 6M | 165 | 48.0 | 75.9 | BSD-3-Clause | 7 months ago |
How can I help you explore Laravel packages today?