Merge pull request #2 from thaiphan/master

Add support for Composer
Convert library to use PHP 5.3 namespaces