How to install composer on Mac

藏色散人
Release: 2021-01-21 11:02:03
forward
3528 people have browsed it

The following column will introduce you to the Mac installation of composer from the composer tutorial column. I hope it will be helpful to friends who need it!

Step One: Download the installation script

php -r "copy('https://install.phpcomposer.com/installer', 'composer-setup.php');"
Copy after login

How to install composer on Mac

##Step Two: Perform the installation process
php composer-setup.php
Copy after login

How to install composer on Mac

##Step 3: Delete the installation script (not necessary)
php -r "unlink('composer-setup.php');"
Copy after login

How to install composer on Mac

Step 4: Install composer globally
sudo mv composer.phar /usr/local/bin/composer
Copy after login

How to install composer on Mac

Note: The command to keep Composer as the latest version:
composer selfupdate
Copy after login

The above is the detailed content of How to install composer on Mac. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:learnku.com
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!