how to install composer mac os globally code example
Example 1: run global packages macos composer
export PATH=~/.composer/vendor/bin:$PATH
Example 2: composer mac
php composer-setup.php --install-dir=bin --filename=composer
export PATH=~/.composer/vendor/bin:$PATH
php composer-setup.php --install-dir=bin --filename=composer