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 Laravel Package

roave/better-reflection

Enhanced PHP reflection for static analysis: reflect classes without loading them, from PHP code strings or closures, extract AST from functions/methods, and read type declarations and docblocks. Feature-rich but slower than native reflection.

View on GitHub
Deep Wiki
Context7

Find a reflection on specified line

Purely an ease-of-use API, the FindReflectionOnLine helper simplifies usage when you want to find a reflection on a specific line. Usage is clean, as the class is an invokable class:

<?php

$finder = (new \Roave\BetterReflection\BetterReflection())->findReflectionsOnLine();
$reflection = $finder('path/to/my/file.php', 10);

The helper will return null if no reflection is found, or may return one of:

  • \Roave\BetterReflection\Reflection\ReflectionClass (for interfaces, classes, traits)
  • \Roave\BetterReflection\Reflection\ReflectionMethod
  • \Roave\BetterReflection\Reflection\ReflectionFunction
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.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope