Go to ~/.bash_profile

Add composer’s bin
directory to the system path by placing export PATH="$HOME/.composer/vendor/bin:$PATH"
into your ~/.bash_profile (Mac OS users) or into your ~/.bashrc (Linux users).

You can use any text editor to add this line to the file or create a new “.bash_profile” file if you do not already have one.