Simon Kollross

Simon Kollross

Software developer, blogger, elegant code enthusiast.

Installing Imagick for PHP using Homebrew

Some weeks ago I have completely reinstalled macOS on my MacBook Pro. Today, while working on one of my projects, I realized that I forgot to reinstall the Imagick PHP extension.

Since brew is not used as default package manager for PHP on Mac anymore, you have to use pecl to install additional PHP extensions.

Installing Imagick for PHP 7.3 on a Mac is actually quite simple.

brew install php
brew install imagemagick
pecl install imagick

I have to look it up everytime I need to install it, so I thought I just share it with you to save you some time.