Skip to content

ncavare/powershell-phpconfig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PowerShell Gallery Download Count

Introduction

A PowerShell module that implements functions to install PHP with interactive menu I use phpmanager, more info here : https://github.com/mlocati/powershell-phpmanager

Installation

Install-Module -Name PhpConfig

Usage with interactive menu

Show-PhpConfig

Usage of Install-PhpFull

Install-PhpFull -version 8.1-nts-x86 -ext common,com,odbc,mysql,imagick,sqlsrv,opcache,xdebug -mode dev

Usage of Set-PhpExtension

Set-PhpExtension -ext common,com,odbc,mysql,imagick,sqlsrv,opcache,xdebug -path C:\php\php-8.1-nts-x86

Usage of Set-PhpMode

Set-PhpMode -mode dev -path C:\php\php-8.1-nts-x86
Set-PhpMode -mode prod -path C:\php\php-8.1-nts-x86

Usage of Set-PhpLimit

Set-PhpLimit -limit classic -path C:\php\php-8.1-nts-x86
Set-PhpLimit -limit high -path C:\php\php-8.1-nts-x86

Usage of Set-PhpSwitcher

Set-PhpSwitcher

Usage of Switch-Php

Switch-Php 7.4
Switch-Php 8.1

Usage of Set-PhpIIS

Set-PhpIIS -site mysite.local -path C:\php\php-8.1-nts-x86