How to install Composer Globally in Mac OS

 

Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project.

Installing Composer On Mac Globally

Step1:
Open a new Terminal command line and execute the following command to download the composer.phar file.

curl -sS https://getcomposer.org/installer | php

Step2:
Run the following two commands in sequential order.

mv composer.phar /usr/local/bin/composer

chmod +x /usr/local/bin/composer

And that is it, the global install is complete in Mac.

Official Website – https://getcomposer.org/

← Go Back Author: Niyaz