Better Reflection is a library that mimics the core reflection API in PHP, but adds many additional features and capabilities that are not possible in the core reflection API. Better Reflection has lots of potential uses, and is already almost compatible with the core API.
You'll need at least PHP 5.6, but head over and see what's changed.
The adventure doesn't end here! We've got loads of cool stuff planned, including:
- Monkey patching !!
- Further compatibility with core reflection
- Ensuring full PHP 7 compatibility (e.g. with type declarations / return types etc.)
getColumn()function(s) to complement
- More cool stuff!
It's been quite a journey to get here, and it's been a real challenge to make this work; thanks go to contributors:
- ocramius (who has been invaluable in making this, so extra thanks Marco!)
- also advise and conversations with nikic and lisachenko!
Go forth and enjoy the new Roave offering of Better Reflection!