installing composer on mac using sudo code example
Example 1: composer mac
php composer-setup.php --install-dir=bin --filename=composer
Example 2: where do you install composer
// Adding permissions after installing Composer on Mac OSX
sudo chmod 755 /usr/local/bin/composer.phar