Requirements for library creation and submit to packagist
Composer, Github or GitLab or any version controller Account, packagist Account
Create a project in GitHub and clone.
Now develop or write the library
With help generate the composer JSON
Commit to version controller
Take the URL of the project
Login packagist and click on submit.