Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a link to PhpManager PowerShell module? #6

Open
mlocati opened this issue May 10, 2018 · 2 comments
Open

Add a link to PhpManager PowerShell module? #6

mlocati opened this issue May 10, 2018 · 2 comments

Comments

@mlocati
Copy link

mlocati commented May 10, 2018

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
Copy link
Owner

snobu commented May 10, 2018

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

@mlocati
Copy link
Author

mlocati commented May 10, 2018

It works wherever there's a powershell 5 installed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants