mlocati / powershell-phpmanager

A PowerShell module to install/update PHP, PHP extensions and Composer on Windows

Home Page:https://www.powershellgallery.com/packages/PhpManager

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Update-Php: specified version

ltdeta opened this issue · comments

update-php
The command will automatically check if there's a newer version available: if so, the PHP installation will be upgraded.

It would be nice if you could specify a version, and not necessarily update to the latest version.

What about using Install-Php instead?

Is the existing configuration retained?

Yes, if you don't specify the InitialPhpIni parameter

If you want, you can extend the description as follows.

Updating PHP to a specified version

Use the Install-Php command to update PHP (for example existing version 7.2.10 to 7.2.15).
If you don't specify the InitialPhpIni parameter all settings are retained.

Install-Php -Version 7.2.15 -Architecture x64 -ThreadSafe 0 -Path C:\PHP

What about editing the README.md file yourself? Just click that link, and click the pencil icon 😉

created a pull request
done 😉