PHP_Reflect is a PHP Library that adds the ability to reverse-engineer classes, interfaces, functions, constants, namespaces and more.
Why PHP_Reflect is different to standard PHP5 Reflection API ?
With PHP5 Reflection API the code to analyze needs to be loaded and interpreted by the php interpreter, and in certain cases, this triggers fatal errors.
With PHP Reflect you don’t have to trust in source code, because it will be parsed with tokenizer extension.
Reflect takes advantage of new features in PHP 5.4.0 or greater.
Reflect is strictly tested. Checks code coverage and see by yourself.
Reflect comes with a complete reflection API almost equivalent to PHP5 reflection.
Whenever possible wheel reinvention was avoided. Reflect uses code from well-known projects including Symfony Finder, and EventDispatcher.
You don’t find the feature you’re searching for. Reflect may be extended easily, without having to hack the code.
PHP Reflect is open source. It’s hosted, developed, and maintained on GitHub.