Install Composer in Mac OSX

Composer is a cross-platform dependency manager for PHP libraries.
It allows you to declare the libraries your project depends on and it will manage (install/update) them for you.
In this article we will install composer in mac OSX (el captain) as global.
Installation Command
Open terminal write this code :

Set Composer global by this code :

if bin directory doesn’t exist please follow this code