global composer code example
Example 1: update packages composer global
composer global update
Example 2: run global packages macos composer
export PATH=~/.composer/vendor/bin:$PATH
composer global update
export PATH=~/.composer/vendor/bin:$PATH