The PHP Reflection library provides a set of useful and robust reflection helpers that you can quickly drop into your own project to save you time and effort.
Add this to your composer.json
file:
{
"require": {
"ganbarodigital/php-reflection": "^2.1"
}
}
and then run composer update
.