Installing Composer for macOS
1. Open a new Terminal window
2. Enter the following command into the Terminal window and hit return
.
brew install composer
3. Enter the following command into the Terminal window and hit return
.
echo 'export PATH="$HOME/.composer/vendor/bin:$PATH"' >> ~/.zshrc
4. Save and close the file.
5. Close the Terminal window