league/construct-finder
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.
BaseModel").ReflectionClass instead).phpDocumentor).ClassLoader).For Executives: "This package lets us build internal tools to navigate and analyze our PHP codebase programmatically—like a search engine for classes, traits, and enums. It’s lightweight, open-source, and could power everything from developer onboarding to automated refactoring. Think of it as the ‘Ctrl+Shift+F’ for our codebase, but for machines. Upfront cost: near-zero; ROI: faster development and fewer manual audits."
For Engineering:
*"Need to find all classes implementing Serializable or list every trait used in a module? This package gives us a fast, reliable way to query class metadata without regex or manual grepping. It’s the backbone for:
php find-orphaned-classes).For Developers:
*"Tired of grep -r "class "? This library scans your codebase once and lets you query classes by name, namespace, or even parent traits—programmatically. Use it to:
NewFeature extend BaseController?’).
It’s like find for your codebase, but for your scripts."*How can I help you explore Laravel packages today?