First, install pkg-config and imagemagick itself
brew install pkg-config imagemagickNext up, use pecl to get the PHP extension compiled.
pecl install imagickIt will also auto-register itself in your php.ini and should now be available.
php -m | grep -i magic