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

What is the name of the composer executable program?

藏色散人
藏色散人Original
2019-09-17 17:50:432421browse

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

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" %*

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!

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