Download the PHP package phpactor/worse-reflection without Composer
On this page you can find all versions of the php package phpactor/worse-reflection. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download phpactor/worse-reflection
More information about phpactor/worse-reflection
Files in phpactor/worse-reflection
Package worse-reflection
Short Description Lazy AST reflector that is much worse than better
License MIT
Informations about the package worse-reflection
Worse Reflection
This package is not actively developed here but in the main phpactor repository. It is occasionally updated. Raise any issues about this repository there.
This library aims to provide a light class-based AST based "reflection" library.
Worse than Better
It is influenced by BetterReflection, diffrerences are as follows:
- Can reflect variables.
- Does not aim to implement built-in PHP reflection API.
- Uses the amazing Tolerant Parser.
- Uses the PHPStorm stubs to provide reflections of internal classes.
It is being developed to provide support for the Phpactor introspection and refactoring tool. And is therefore driven by that use case.
If you want comprehsnsive reflection, use BetterReflection. If you want faster reflection including type/value flow with no support and frequent BC breaks, then you can use this one (note that I havn't benchmarked BR in sometime, it may well be faster now).
Usage
See tests for more examples...
Contributing
This package is open source and welcomes contributions! Feel free to open a pull request on this repository.
Support
- Create an issue on the main Phpactor repository.
- Join the
#phpactor
channel on the Slack Symfony Devs channel.
All versions of worse-reflection with dependencies
jetbrains/phpstorm-stubs Version *
phpactor/tolerant-php-parser Version dev-main
amphp/amp Version ^2.6
phpactor/text-document Version ^2.1.0
phpactor/docblock-parser Version ^0.2.0
psr/log Version ^1.0||^2.0||^3.0