Home>Article>Development Tools> How to set composer to be globally available
The following tutorial column ofcomposerwill introduce to you how to set composer to be globally available. I hope it will be helpful to friends in need!
Composer is divided into two methods:
The first: partial installation:
Copy the Composer.phar file to any directory, such as a project The root directory, and then use the php composer.char command to use Composer
Second: Global installation
How to operate the Window system?
Copy Composer.char to the same directory as php.exe
Create a new Composer.bat file and save the following code into the file
@php “%~dp0composer.phar” %*
How to check whether composer is successfully installed?
The above is the detailed content of How to set composer to be globally available. For more information, please follow other related articles on the PHP Chinese website!