How to configure composer in PHP (pictures and text)

不言
Release: 2023-04-03 19:48:01
Original
2035 people have browsed it

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!