< Back

Install-PhpExtension

Sat Jan 18, 2020 6:48 pm

NAME Install-PhpExtension



SYNOPSIS

Installs a PHP extension.





SYNTAX

Install-PhpExtension [-Extension] <String> [[-Version] <String>] [[-MinimumStability] <String>] [[-Path] <String>]

[-DontEnable] [<CommonParameters>]





DESCRIPTION

Downloads a PHP extension, or move a local file to the correct location, and enables it (if the -DontEnable switch

is not specified).





PARAMETERS

-Extension <String>

The name of the PHP extension to be downloaded, or the path to an already downloaded file.



Required? true

Position? 1

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Version <String>

Specify the version of the extension (it can be for example '2.6.0', '2.6', '2').



Required? false

Position? 2

Default value

Accept pipeline input? false

Accept wildcard characters? false



-MinimumStability <String>

The minimum stability flag of the package: one of 'stable' (default), 'beta', 'alpha', 'devel' or 'snapshot'.



Required? false

Position? 3

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Path <String>

The path of the PHP installation.

If omitted we'll use the one found in the PATH environment variable.



Required? false

Position? 4

Default value

Accept pipeline input? false

Accept wildcard characters? false



-DontEnable [<SwitchParameter>]

Specify this switch to not enable the extension.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS





RELATED LINKS