how to install composer laravel with cmd mac code example Example: install laravel globally mac export PATH="$PATH:$HOME/.composer/vendor/bin"