how to install with composer code example
Example 1: update composer php version
php7.3 -f /usr/local/bin/composer update
Example 2: where do you install composer
// Adding permissions after installing Composer on Mac OSX
sudo chmod 755 /usr/local/bin/composer.phar