Install Composer for PHP on macOS X
You are Welcome! The Tutorial shows you Step-by-Step How to Install Composer Globally for PHP Projects Dependency Management on macOS X.
Composer is a tool for dependency management in PHP. It allows you to declare the dependent libraries your project needs and it will install them in your project for you.

-
Install PHP5 with OpenSSL Support for macOS
-
Open Terminal Window
(Press “Enter” to Execute Commands) -
Download Composer Dependencies Manager for PHP
-
Relocate Composer into the System Path.
sudo mv composer.phar /usr/local/bin/composer
-
Testing Composer Installation.
which composer