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.
eval(), file I/O) via reflection for static/dynamic analysis.getClassHierarchy() or getClassProperties().0.7.*) to mitigate breaking changes.phpDocumentor/reflection-docblock or rubix/ml for alternatives).For Executives: "This package lets us build smarter, self-aware tools faster—like auto-generating API clients, detecting security risks in code, or optimizing performance without manual reflection hacks. It’s a low-risk bet (MIT license, active development) that could accelerate internal tooling by 30–50%, justifying a small upfront investment in adoption."
For Engineering: *"Brick\Reflection gives us superpowers for metaprogramming:
ReflectionTools: Inspect private methods/properties, export function signatures (even with PHP 8.2 DNF types), or traverse class hierarchies—all with less boilerplate.ImportResolver: Resolve ambiguous class names in templates/annotations (e.g., @param User $user → App\Models\User), critical for dynamic systems.
It’s PHP 8.1+ only, actively maintained, and avoids reinventing reflection wheels. Lock to 0.7.* to stabilize usage."*Key Asks:
0.7.* to avoid breaking changes during adoption.How can I help you explore Laravel packages today?