How to install Homebrew, Composer, Git and WGET on Mac OSX High Sierra, Mojave, Catalina, Big Sur, Monterey

NOTE: This post is a few years old and may be outdated, but I did just install the following on a new iMac M1 in 2022 and here’s what worked: First, Git comes installed by default on most Mac and Linux machines. To check if you have Git installed, open your Terminal and type git