added composer file

also added as package to packagist