Installing Brew, PHP, Composer, WP-CLI (MAC OSX)

Firstly install Brew on your MAC

ruby -e “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)”

Then install PHP

brew update
brew tap homebrew/dupes
brew tap homebrew/php
brew install composer

 

If you have some problem with brew install composer (for example:

composer: Missing PHP53, PHP54, PHP55 or PHP56 from homebrew-php. Please install one of them before continuing
Error: An unsatisfied requirement failed this build.

)

… you have to install PHP in other version:

brew install php54

Then install composer:

brew install composer

Installation of WP-CLI:

brew tap josegonzalez/homebrew-php
brew install wp-cli

 

What is WP-CLI?

WP-CLI is a set of command-line tools for managing WordPress installations. You can update plugins, set up multisite installs and much more, without using a web browser.
So WP-CLI makes your life easier each time you want to create new instance of WordPress, updete it or just update all plugins.

Full list of commands is available under this lin: WP-CLI list of commands