Weave Code
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
Better Reflection

Better Reflection Laravel Package

roave/better-reflection

Better Reflection is an enhanced PHP reflection API for static analysis. Reflect on classes without loading them, from PHP code strings, and on closures; extract method/function AST and type declarations. Feature-rich but slower than native reflection (not for runtime).

View on GitHub
Deep Wiki
Context7

Roave BetterReflection is an advanced reflection API for PHP that extends far beyond the built-in Reflection capabilities, especially for static analysis and code introspection. It can analyze code without executing it, making it ideal for tooling that needs reliable type and structure information.

Built for feature depth (not runtime speed), it enables rich inspection of source code, ASTs, and declarations—even when classes aren’t loaded.

  • Reflect classes not yet loaded without autoloading them
  • Reflect directly from a string of PHP code
  • Inspect closures with detailed metadata
  • Extract and return AST for functions, methods, and classes
  • Read parameter/return type declarations and docblock info
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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4