Home > Development Tools > composer > What is the name of the composer executable program?

What is the name of the composer executable program?

藏色散人
Release: 2019-09-17 17:50:43
Original
2464 people have browsed it

What is the name of the composer executable program?

#What is the name of the composer executable program?

The name of the composer executable program is composer.phar (if placed in the directory of the environment variable, it will be installed globally, otherwise it will be installed locally).

For more composer-related knowledge, please visit composer tutorialcolumn.

Related introduction:

1. Download the composer.phar package

Address: https://getcomposer.org/download/

2. Move composer.phar

Mac or Linux system:

Open the command line window and execute the following command to move the composer.phar file downloaded earlier to /usr/local/bin/ Below the directory:

sudo mv composer.phar /usr/local/bin/composer
Copy after login

Windows system:

Find and enter the PHP installation directory (it should be the same set of PHP as the php command you executed on the command line).

Copy composer.phar to the PHP installation directory, which is the same level directory as php.exe.

Create a new composer.bat file in the PHP installation directory and save the following code into this file.

@php "%~dp0composer.phar" %*
Copy after login

Finally reopen a command line window and try executing composer --version to see if the version number is correctly output

3. Update composer

Don’t forget to execute it frequently composer selfupdate to keep Composer always up to date.

The above is the detailed content of What is the name of the composer executable program?. 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