snobu / php-imagick-webapps

ImageMagick on App Service (Windows)
8 stars 2 forks source link

Add a link to PhpManager PowerShell module? #6

Open mlocati opened 6 years ago

mlocati commented 6 years ago

I just released a PowerShell module that can automatically download and install imagick on Windows.

Here's a sample PowerShell session:

PS C:\> Install-Module PhpManager -Scope CurrentUser -Force

PS C:\> Install-PhpExtension -Extension imagick -Path C:\Dev\PHP5.6.5
Downloading PECL package imagick 3.4.3 from https://windows.php.net/downloads/pecl/releases/imagick/3.4.3/php_imagick-3.4.3-5.6-ts-vc11-x86.zip
Installing new extension 'imagick' version 3.4.3
Checking prerequisites for imagick
Downloading and extracting https://windows.php.net/downloads/pecl/deps/ImageMagick-6.9.3-7-vc11-x86.zip
The extension imagick v3.4.3 has been enabled

PS C:\> Get-PhpExtension -Path C:\Dev\PHP5.6.5 | Where-Object { $_.Name -eq 'imagick' }
Type     : Php
State    : Enabled
Name     : imagick
Handle   : imagick
Version  : 3.4.3
Filename : C:\Dev\PHP5.6.5\ext\php_imagick.dll

(for PHP 7.2 you have to add -MinimumStability snapshot to the Install-PhpExtension command)

snobu commented 6 years ago

Does this also work in a Windows Web App on App Service?

mlocati commented 6 years ago

It works wherever there's a powershell 5 installed