Home > Article > Development Tools > How to install composer on Mac
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!
php -r "copy('https://install.phpcomposer.com/installer', 'composer-setup.php');"
php composer-setup.php
php -r "unlink('composer-setup.php');"
sudo mv composer.phar /usr/local/bin/composer
composer selfupdate
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!