Merged some of the other forks and updated for php5

Hi Ryan,

I went ahead and merged some of the forks from other devs that make this library more usable in a php5 / framework world.

- composer.json (but you will need to edit the metadata)
- namespacing
- changes to the class to be more php5 friendly.

I'm happy to maintain my fork, but I think these would be good to have for everyone.

Best

UNM