About the installation of the various parts and account settings This will not be discussed here, the relevant documents on the Internet enough
Define the required package name, create a git project, commit to GitHub
On the Packgist website, fill in the corresponding project URL, click Add, you can complete
Then the package code is perfected and submitted to GitHub
It is important to note that Composer-github tag is the package version
So if you do not submit tag, your package may not be able to use composer installation
git tag x.x.x x.x.x is the version number that you need to define.
Git push origin--tags push to GitHub server
If you don't have Automatic Updates configured, you'll need to go to packgist your package and update it manually.
To be perfected--
This article from "Micro-desire for-micro-life" blog, declined to reprint!
Php-composer-packgist-github using précis-writers