Steps I've taken so far:
Fatal error: Class 'Imagick' not found
php 5.6 NTS x64 installed on Windows 8.1 pro for my Development System.
EDIT: This procedure worked with Windows 10 pro as well.
I was unable to get Imagick Working with PHP using an older release of ImageMagick as in the accepted answer and it was difficult to find mirrors with the exact safe binaries needed (the binaries on the mirror in the accepted answer downloaded as different versions than listed).
In all of the steps below, be sure to match your PHP architecture (x86/x64 and NTS/TS) to the binary's architecture. If you are using PHP x86 - replace the x64 version of the downloads with the x86 (or 32bit) version. The same applies to Thread-Safe (TS) and Non-Thread-Safe (NTS) versions of PHP.
I finally got it all working by performing the following:
D:\php5.6is also added to the
PATHof your system environment variables
extension = php_imagick.dllto
(ImageMagick 6.9.1-2 Q16 x64)and the missing supported formats
D:\php5.6\binfrom http://www.imagemagick.org/script/binary-releases.php - Ensure that the
Add Path to Environment Variablesoption is checked or manually add it .
convert --versiondisplays the correct version
D:\php5.6(they will be loaded via ImageMagick path - otherwise your PHP installation may become unstable with the PECL RC dlls)
D:\php5.6\binto be able to convert PDFs to images from http://sourceforge.net/projects/ghostscript/ be sure to match the architecture for your installation
I did not need to add
MAGICK_HOME for Imagick to work using the PHP Built-In Web Server, but may be required for Apache. Other note is to ensure the user running PHP has permission to execute
convert. This should be inherited via
D:\php5.6\bin but in case you chose to install to
C:\Program Files. you may have issues due to its restricted permissions.
Alternative for Image conversion
As noted in the comments, you can alternatively download the required ImageMagick version dependencies and extract the
dll files from within the
bin directory directly into your
The dependencies can be found on PECL website http://windows.php.net/downloads/pecl/deps/
With the PECL dependencies method there were issues with excluded files needed for PDF conversions using GhostScript.
Be sure to rearrange your PATH System Environment Variable so that
%SystemRoot%\system32\convert.exe does not override the
By adding your PHP path to the left of system32, like so: PATH:
This will force your system to look for executable files within
D:\php5.6\bin prior to
D:\php5.6\bin\convert.exe with the path to where you installed ImageMagick or the path to where
convert.exe is located