Junior Grossi wrote quick tutorial about creating composer packages
“Hi everybody! Today I’ll write about how you can contribute with PHP community creating packages (or updating your’s) using Composer and Packagist. First, if you’re a PHP developer and don’t know yet what is Composer, take a look on the post Why you should use Composer and how to start using it to get more information about.”
Check out the source : Creating your first Composer/Packagist package | Junior Grossi