Download: https: //getcomposer.org/download/
he will automatically find your php directory, if not remember to manually modify
have been the next point, you can.
If the installation is not successful, it may be installed before the composer had no clean uninstall, in fact, it is the composer of some php file, find they can be deleted.
composer remove: remove Composer
Composer config -g the -l | grep "Home | dir" -E: find the corresponding directory
where composer: find the corresponding installation position
by
cd / d Path
You can jump to any path to
Console input composer, as if the flag is displayed, on behalf of the installation was successful.
Configuration:
open mirror (foreign websites slow connection, at any time and may be "wall" or even "does not exist"), to speed up the installation composer:
composer config -g repo.packagist composer https://packagist.phpcomposer.com
1
generation a project composer:
New folder - new file composer.json, reads as follows:
{
"the require": {
}
}
. 1
2
. 3
. 4
command to switch to this folder directory Update composer performed, the root directory will the next generation a vender folder, after all third-party expansion packs will be installed here.
composer install php library composer require ****, you can go https://packagist.org/ find the required packages, uninstall packages using composer remove
Laravel be installed after the installation of composer
Disclaimer: This article is CSDN blogger "stop hi 'original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
Original link: https: //blog.csdn.net/qq_38125058/article/details/81280437