composer basis

1, composer Profile

composer is a PHP tool for managing dependence (dependency) relationships, toolkits Address: https://packagist.org/

2, installation

Official website to download, direct installation, note the following:
Here Insert Picture Description

3, modify the Chinese Mirror

composer config -g repo.packagist composer https://packagist.phpcomposer.com
Here Insert Picture Description

4, the basic use

1, created under the specified folder composer.json, fill in the relevant configuration code
2, execution composer install the command line
3, create a php script, and to introduce autoload.php vendor folder
4, view the document
https: / /www.phpcomposer.com/
https://docs.phpcomposer.com/

Here Insert Picture Description
把默认的 secure-http 改成false:
composer config -g secure-http false
composer config secure-http false

Guess you like

Origin blog.csdn.net/yu_wlong/article/details/90674322