Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Class Info Laravel Package

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.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Dynamic module/plugin discovery: Scan Laravel module or package directories to identify classes/functions defined in files, then auto-register service providers, commands, routes, or config. Useful for extensibility roadmaps, internal modular monoliths, or plugin-style architectures.
  • Developer tooling and code generation: Support scaffolding, documentation generation, test generation, and legacy-file inspection by quickly answering “what is defined in this file?”
  • Code audit and inventory features: Enumerate functions/classes for static checks, dependency inventories, prohibited-function scans, or migration planning.
  • Build vs. buy decision: This is a very small utility, not a platform dependency. Use it for narrow internal introspection, but avoid making strategic customer-facing features depend solely on it.
  • Prioritization signal: With 5 stars and 0 dependents, adoption risk is high. Treat it as a tactical/internal helper, not a roadmap-critical foundation.

When to Consider This Package

Consider it when:

  • You need lightweight file-level class/function discovery in a controlled PHP codebase.
  • The use case is internal developer tooling, prototyping, code generation, or module scanning.
  • You can pin the dependency and wrap it behind a small internal adapter.
  • Your PHP files are simple and your team can validate syntax compatibility.
  • You need a quick, low-cost prototype rather than a full static-analysis capability.

Look elsewhere when:

  • You need robust AST parsing, namespaces, traits, attributes, anonymous classes, conditional declarations, or modern PHP syntax support. Use nikic/php-parser or PHP’s tokenizer/reflection APIs instead.
  • You need Laravel package/class discovery. Prefer Composer classmaps, Laravel’s package discovery, and reflection.
  • You require a maintained, security-reviewed, widely adopted dependency.
  • You need high-scale performance. Cache results or use a parser designed for repeated analysis.
  • The feature is customer-facing or on a critical path. The low adoption signals make this unsuitable as a strategic dependency.

How to Pitch It (Stakeholders)

For executives: This is a small, tactical utility that can support internal developer productivity and modular discovery. It is not a customer-facing platform bet. Adoption risk is low if isolated behind an internal adapter, but it should not anchor a major roadmap commitment.

For engineering: The package can quickly enumerate classes and functions defined in a file, which is useful for module scanners, code generators, and simple audits. Integration cost is low, but capability is narrow and adoption is minimal. Wrap it, pin it, test PHP-version compatibility, and be ready to replace it with nikic/php-parser if requirements grow beyond simple file inspection.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
alphabalex/messaging-made-easy
rawphp/warp
shootkiran/merobug
narakode/fineauth
numencode/wn-syncops-plugin
ibnnajjaar/mib-global-pay
ably/pubsub-server
mstfkhazaal/defender
mfonte/base62x
karnoweb/metapilot
tobya/bcsapiwrapper
swalker2/cpanel
vish4395/laravel-translation-manager
morningtrain/economic
teksite/systeminfo-laravel
atomcms/voting
run6/weather
siokas/laravelembeddirectives
adamlien/pkuuids
gilsonsouza/lara-doc-generator