brew update #update brew Installable package
brew search php #search php
brew tap josegonzalez/php #install extensions <gihhub_user/repo>
brew tap #view the list of installed extensions
brew install php #install php
brew remove php #uninstall php
brew upgrade php #update php
brew options php #view php installation options
brew info php #view info about php
brew home php #visit php official website
brew services list #view the services installed through brew
brew services cleanup #clear unloaded useless startup profiles
brew services restart php #restart php-fpm
brew doctor #check brew