Example of using Composer
This article will explain in detail about the use of Composer examples, the editor thinks it is very practical, so share it for you to do a reference, I hope you can get something after reading this article.
1. Perceptual knowledge Composer
In a word: PHP version of the app store
List of Chinese images: https://pkg.phpcomposer.com/
II. Global installation of Composer and Git
Composer global installation: https://docs.phpcomposer.com/00-intro.html#Globally
Git schematic tutorial: https://segmentfault.com/a/1190000008617626
Create a composer.json file to build a Packagist installation package
Packagist automatically crawls the composer.json file in GitHub.
Add a project to composer.
Download the items in the installation package Packagist
5. the GitHub hook is automatically updated to the installation package in Packagist
You do not need to click on this update to synchronize the code on GitHub to Packagist.
Define Composer to realize automatic loading of autoload
On the use of Composer examples to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.