Home >Backend Development >PHP Tutorial >How to configure composer in PHP (pictures and text)

How to configure composer in PHP (pictures and text)

不言
不言Original
2018-08-17 17:35:162083browse

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 command
echo @php "%~dp0composer.phar" %*>composer.bat
How to configure composer in PHP (pictures and text)

Execute the composer command. If you see the following effect, the installation is successful
How to configure composer in PHP (pictures and text)

Configure the image for easy download

composer config -g repo.packagist composer https://packagist.phpcomposer.com

How to configure composer in PHP (pictures and text)

Check whether the image is installed successfully
How to configure composer in PHP (pictures and text)

Related recommendations :

Composer sets the method to ignore version matching, composer matches

The Cache directory location of the Composer installation package in the Windows7 environment, windows7composer

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn