how to add composer to path code example
Example 1: upgrading composer globally on windows
php composer.phar self-update
Example 2: run global packages macos composer
export PATH=~/.composer/vendor/bin:$PATH
Example 3: mac Make sure the ~/.composer/vendor/bin directory is in your system's "PATH"
export PATH="$PATH:$HOME/.composer/vendor/bin"
Example 4: how to install composer windows
why is it so hard to install composer every time it's a struggle