setup for composer packagist, added phpunit test, added .travis.yml, code formatting etc