This article is provided by the tutorial column ofcomposerto introduce you to the process of uploading the composer expansion package. I hope it will be helpful to friends in need!
The main process of uploading the composer expansion package
1. Upload the code to Github (preferably over the firewall)
Project example: github.com/wzy-wangge/laravel-cons...
2. Publish to packagist (need to circumvent the wall)
Project example: packagist .org/packages/wzy-wangge/...
Submit repository: packagist.org/packages/submit
3. Composer installation
Use composer directly Install package name command
a. The release package cannot be installed immediately using the command, there will be a network delay
b. It cannot be installed , check the composer's installation source, give priority to the default installation source packagist, other sources have synchronization delays
The above is the detailed content of Composer extension package upload process (recommended). For more information, please follow other related articles on the PHP Chinese website!