Aditya,
We needed this class but in Composer for PSR compliance on a project we're working on. Our staff added support here:
github.com/wholehogsoftware/filetot
...
I'd love for you to take over the repository and keep it updated as you release new versions of this class.
If you're interested, please email wholehogsoftware@gmail.com