Download the PHP package rector/better-reflection without Composer
On this page you can find all versions of the php package rector/better-reflection. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download rector/better-reflection
More information about rector/better-reflection
Files in rector/better-reflection
Download rector/better-reflection
More information about rector/better-reflection
Files in rector/better-reflection
Vendor rector
Package better-reflection
Short Description Better Reflection - an improved code reflection API
License MIT
Package better-reflection
Short Description Better Reflection - an improved code reflection API
License MIT
Please rate this library. Is it a good library?
Informations about the package better-reflection
Better Reflection
Better Reflection is a reflection API that aims to improve and provide more features than PHP's built-in reflection API.
Why is it better?
- You can reflect on classes that are not already loaded, without loading them
- Ability to reflect on classes directly from a string of PHP code
- Better Reflection analyses the DocBlocks (using phpdocumentor/type-resolver)
- Reflecting directly on closures
- Ability to extract AST from methods and functions
- Ability to return AST representation of a class or function
- Fetch return type declaration and parameter type declarations in PHP 7 code (even when running PHP 5!)
- Change or remove PHP 7 parameter type and return type declarations from methods and functions
- Change the body of a function or method to do something different
- Moar stuff coming soon!
Be sure to read more in the feature documentation.
Installation
Simply require using composer:
Usage
Documentation
- Compatibility with core Reflection API
- Basic usage instructions
- Using types
- The features
- Test suite
- AST extraction
- Reflection modification
Upgrading
Please refer to the Upgrade Documentation documentation to see
what is required to upgrade your installed BetterReflection
version.
Limitations
- PHP cannot autoload functions, therefore we cannot statically reflect functions
License
This package is released under the MIT license.
Contributing
If you wish to contribute to the project, please read the CONTRIBUTING notes.
All versions of better-reflection with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.1
nikic/php-parser Version ^4.0
phpdocumentor/reflection-docblock Version ^4.1
phpdocumentor/type-resolver Version ^0.4
roave/signature Version ^1.0
nikic/php-parser Version ^4.0
phpdocumentor/reflection-docblock Version ^4.1
phpdocumentor/type-resolver Version ^0.4
roave/signature Version ^1.0
The package rector/better-reflection contains the following files
Loading the files please wait ....