在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):Roave/BetterReflection开源软件地址(OpenSource Url):https://github.com/Roave/BetterReflection开源编程语言(OpenSource Language):PHP 100.0%开源软件介绍(OpenSource Introduction):Better ReflectionBetter Reflection is a reflection API that aims to improve and provide more features than PHP's built-in reflection API. Why is it better?
Typically you would use Better Reflection for static analysis tooling. It can serve as a baseline to access type information (e.g. doc blocks, type declarations), method/function body AST fetching etc. for static analysis. Better Reflection is NOT suited to runtime usage, since performance is much worse than PHP built-in reflection. If you do not want to do anything that native PHP reflection can't do, then just use native PHP reflection! The "Better" in Better Reflection refers to feature, not speed! Be sure to read more in the feature documentation. InstallationRequire using composer: composer require roave/better-reflection Usage<?php
use Roave\BetterReflection\BetterReflection;
$classInfo = (new BetterReflection())
->reflector()
->reflectClass(\Foo\Bar\MyClass::class); Documentation
UpgradingPlease refer to the Upgrade Documentation documentation to see what is required to upgrade your installed
Limitations
LicenseThis package is released under the MIT license. ContributingIf you wish to contribute to the project, please read the CONTRIBUTING notes. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论