mfn / php-reflection-gen
通过反射生成当前运行时的 PHP 源代码框架
v0.0.4
2014-10-28 18:22 UTC
Requires
- php: >=5.4.0
- symfony/console: ~2.5
This package is auto-updated.
Last update: 2024-09-16 16:40:47 UTC
README
主页: https://github.com/mfn/php-reflection-gen
简介
使用当前 PHP 运行时的反射能力,输出所有类、接口、特性和函数的可解析(但可能无法运行的)PHP 代码。
安装/使用
composer require mfn/php-reflection-gen 0.0.5
php_reflection_gen.php
将所有反射数据输出到 stdout。可选地,您可以将其写入文件或目录。
在使用 --directory
的情况下,为每个 PHP 扩展创建一个单独的文件。
待办事项/想法
- 正确处理命名空间(目前由于没有 PHP 内部使用命名空间,所以这不是一个关注点)
- 处理非内部 PHP 反射
- 支持旧版本(<5.4)PHP
© Markus Fischer markus@fischer.name