Install Image magick MAMP PHP56

In order to install ImageMagick on a Mac running MAMP

# 1 > Install HomeBrew

First install homebrew

Navigate to the website and follow instructions: www.homebrew.com

OR type the following into a terminal:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

# 2 > Install ImageMagick

Type in a terminal:

brew install imagemagick

# 3 > Install Imagick - PHP extension

type in terminal:

brew install homebrew/php/php56-imagick

Add the extension by modifying the php.ini template in MAMP (2 locations = command line / browser)
-> Navigate to Applications -> MAMP -> bin -> php -> php5.6.30 -> conf -> php.ini
-> Navigate to Applications -> MAMP -> conf -> php5.6.30 -> php.ini
-> look for '; extensions' and add under:

Reload MAMP -> stop / start

Create a php file called phpinfo.php

<?php phpinfo(); ?>

-> Ensure Imagick is loading: Search for `Imagick` (this ensures it is running in your browser)
terminal: php -i "(command-line 'phpinfo()')"