kcs/class-finder
Discover and filter PHP classes and namespaces in your project using Composer’s autoloader with PSR resolution. Iterate found classes and reflections, then narrow results by interfaces, subclasses, annotations, PHP 8 attributes, directories, namespaces, or custom callbacks.
Adopt if:
Look Elsewhere if:
use statements suffice).For Executives: "This package lets our engineering team automate class discovery in our PHP/Laravel codebase, cutting the time spent manually tracking classes by ~30%. For example, if we’re building a plugin system or scaling our monolith, this tool will help us resolve dependencies dynamically—reducing bugs and speeding up feature delivery. It’s a low-risk, MIT-licensed utility with minimal overhead, and it aligns with our goal to improve developer velocity. The tradeoff? A small upfront learning curve for the team, but the long-term savings in maintenance and onboarding justify it."
For Engineering: *"ClassFinder solves a painful manual process—no more grepping for classes or guessing namespace paths. Key benefits:
Finder::find('App\Plugins\*')).Use it for: ✅ Plugin systems (e.g., WordPress-like architectures). ✅ Generating dynamic configs or API docs. ✅ Reducing IDE frustration in large codebases.
Risks:
Proposal: Pilot it in one module (e.g., plugins) and measure dev time saved. If successful, roll it out to shared libraries."*
How can I help you explore Laravel packages today?