crodas/class-info
crodas/class-info is a lightweight PHP introspection utility for reading class metadata via reflection. It exposes methods, properties, parent classes, interfaces, and docblocks, making it useful for documentation generation and runtime tooling that needs structured class information.
A TPM should treat crodas/class-info as a narrow static-analysis utility, not a strategic platform dependency. It answers one question—"what classes/functions are defined in this file?"—which can support Laravel tooling such as module/package discovery, code generation, documentation inventory, migration analysis, and architecture governance. It is not Laravel-aware, does not provide auto-discovery, routing, container integration, or reflection replacement.
FileSymbolScanner. Avoid using it in request paths, domain services, or as the sole source of truth for application wiring. Laravel already offers Composer classmaps, Reflection, Symfony Finder, and mature parsers such as nikic/php-parser; this package should be justified by a concrete, narrow scanning need.token_get_all or execute files? How does it resolve namespaces, multiple namespaces, traits, interfaces, enums, and conditional declarations? Does it detect anonymous classes, nested functions, or functions inside conditionals? How does it handle parse errors, symlinks, generated files, and duplicate symbols? Are there tests and CI? What are its memory/time characteristics on large repositories? Is it maintained, and what is the fallback?Use it only behind an internal abstraction and only where static symbol discovery is genuinely needed. A TPM should sponsor a small spike, not a broad rollout.
nikic/php-parser or a small token_get_all wrapper.Operationally, this is a low-cost utility only if constrained and owned. Without ownership, it becomes a silent single point of failure in tooling.
How can I help you explore Laravel packages today?