private/Get-PhpSdk.ps1
|
function Get-PhpSdk { <# .SYNOPSIS Get the PHP SDK. #> [OutputType()] param ( ) begin { $sdkVersion = "php-sdk-2.6.0" $url = "https://github.com/php/php-sdk-binary-tools/archive/$sdkVersion.zip" } process { Get-File -Url $url -OutFile php-sdk.zip Expand-Archive -Path php-sdk.zip -DestinationPath . Rename-Item -Path php-sdk-binary-tools-$sdkVersion php-sdk } end { } } |