move to a composer package

Wondering whether this should be psr-0 instead? Thoughts?