Add composer.json to allow simple integration in php projects

This will make it easier for end-users to manage the dependency alongside other vendor libraries and packages in a PHP project.

If you're happy to merge this, it would also be great if you could then submit it to https://packagist.org/ and ideally set up a github hook to notify them of any changes.

Thanks