PHP ReflectionClass++
| vendor/SebastiaanFranken | ||
| index.php | ||
| README.md | ||
Reflector
Reflector is a PHP class/library to extend the native PHP ReflectionClass class. In the future this is planned to be extended to also have methods and other reflection classes.
How does this work?
Like so
<?php
$reflector = new SebastiaanFranken\Reflector($subject);
print($reflector->reflect());
Where $subject is the class (instance) you want to reflect upon. The reflect() method will do the heavy lifting and produce a nice output in the browser for you.