Home > Article > Backend Development > How to configure composer in PHP (pictures and text)
The content of this article is about the steps of configuring composer in PHP. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
First copy the composer.phar offline package and decompress it to the same level directory as php.exe
Then switch to the php.exe directory on the command line and execute the following commandecho @php "%~dp0composer.phar" %*>composer.bat
Execute the composer command. If you see the following effect, the installation is successful
Configure the image for easy download
composer config -g repo.packagist composer https://packagist.phpcomposer.com
Check whether the image is installed successfully
Related recommendations :
Composer sets the method to ignore version matching, composer matches
The above is the detailed content of How to configure composer in PHP (pictures and text). For more information, please follow other related articles on the PHP Chinese website!