A PowerShell module that implements functions to install PHP with interactive menu I use phpmanager, more info here : https://github.com/mlocati/powershell-phpmanager
Install-Module -Name PhpConfigShow-PhpConfigInstall-PhpFull -version 8.1-nts-x86 -ext common,com,odbc,mysql,imagick,sqlsrv,opcache,xdebug -mode devSet-PhpExtension -ext common,com,odbc,mysql,imagick,sqlsrv,opcache,xdebug -path C:\php\php-8.1-nts-x86Set-PhpMode -mode dev -path C:\php\php-8.1-nts-x86
Set-PhpMode -mode prod -path C:\php\php-8.1-nts-x86Set-PhpLimit -limit classic -path C:\php\php-8.1-nts-x86
Set-PhpLimit -limit high -path C:\php\php-8.1-nts-x86Set-PhpSwitcherSwitch-Php 7.4
Switch-Php 8.1Set-PhpIIS -site mysite.local -path C:\php\php-8.1-nts-x86