How to create the php library and submit to packagist

Step 1:

Requirements for library creation and submit to packagist

Composer, Github or GitLab or any version controller Account, packagist Account

Step 2:

Create a project in GitHub and clone.

Step 3:

Now develop or write the library

Step 4:

With help generate the composer JSON

Step 5:

Commit to version controller

Step 6:

Take the URL of the project

Step 7:

Login packagist and click on submit.