Home > Article > Development Tools > Composer practical tutorial
1. Perceptual understandingComposer
One sentence: PHP version App Store
China mirror list: https://pkg.phpcomposer.com/
2. Composer global installation and Git
Composer global installation: https://docs.phpcomposer.com/00-intro.html#Globally
Git graphic tutorial: https://segmentfault.com/a/1190000008617626
3. Create the composer.json file to build a Packagist installation package
Packagist will automatically grab the composer.json file in GitHub.
Add the project to composer.
4. Download the items in the installation package Packagist
##5. The GitHub hook automatically updates the installation package in Packagist
There is no need to click this update to synchronize the code on GitHub to Packagist.6. Define Composer to implement automatic loading autoload
The above is the detailed content of Composer practical tutorial. For more information, please follow other related articles on the PHP Chinese website!