composer compatibility

Please integrate this to your repo to make it compatible with composer. Feel free to include the package on packagist.