The following column composer usage tutorial will introduce to you how to use brew to install composer. I hope it will be helpful to friends in need!
Check the PHP version in the terminal. Composer requires PHP 5.3.2 version and some PHP configurations
1 2 3 4 |
|
Enter
1 |
|
in the terminal and it will appear Problem:
1 2 3 4 |
|
Solution: Click to view
Method 1:
1 |
|
Method 2:
1 |
|
After solving the problem, Use brew install homebrew/php/composer to install
After installing composer successfully, I want to install laravel/installer
1 |
|
After the installation is successful, use the command laravel, but it will display zsh: command not found: laravel
Solution:
1 2 |
|
The above is the detailed content of Install composer using brew. For more information, please follow other related articles on the PHP Chinese website!