brick/reflection
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.
|
Package
|
Score
|
Description
|
Stars
|
Likes
|
Forks
|
Downloads
|
Issues
|
Score
|
Opportunity
|
License
|
Last Release
|
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| phpdocumentor/reflection | 0.88 | 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 | |
| sajadsdi/php-reflection | 0.88 | 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 | |
| fsi/reflection | 0.88 | 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.87 | 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 | |
| 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 | — | — | |
| roave/better-reflection | 0.86 | 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 | |
| codememory/reflection | 0.86 | 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 | 1 year ago | |
| brick/math | 0.86 | brick/math is a PHP library for arbitrary precision arithmetic. It provides BigInteger, BigDecimal, BigRational, and BigNumber classes, automatically using GMP or BCMath when available for fast, exact calculations. | 2,180 | 2,182 | 102 | 16M | 0 | 43.5 | 61.7 | MIT | 1 month ago | |
| andrew-gos/class-builder | 0.85 | PHP library to construct objects from arrays or scalars using constructor reflection. Supports interfaces/abstracts via AvailableInheritors, conditional building with BuildIf checkers, typed arrays, variadics, and union/intersection parameter types. | 1 | 2 | 0 | 60 | 0 | 0.0 | 20.6 | MIT | — | |
| brick/date-time | 0.85 | A powerful set of immutable PHP date-time classes built on native PHP and following ISO 8601, inspired by Java's JSR 310. Adds missing concepts such as LocalDate, LocalTime, YearMonth, and MonthDay. Requires PHP 8.2+. | 361 | 365 | 36 | 242K | 19 | 37.8 | 56.0 | MIT | 4 weeks ago | |
| brick/money | 0.85 | Brick\Money is a PHP library offering immutable Money and Currency classes with exact arithmetic and explicit rounding control, avoiding floating-point errors. Built on brick/math, it handles any amount size. Requires PHP 8.2+; GMP or BCMath recommended for speed. | 1,938 | 1,954 | 121 | 2M | 5 | 44.4 | 50.7 | MIT | 1 month ago |
How can I help you explore Laravel packages today?