1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Fix download instructions for scoop

This commit is contained in:
Shivam Mathur
2026-02-07 06:26:08 +05:30
parent f15ca6baf1
commit e42fbdc9ee
3 changed files with 14 additions and 1 deletions

View File

@@ -57,6 +57,8 @@ switch ($options['os']) {
case 'windows':
if($options['osvariant'] === "{$options['os']}-docker") {
$file = "{$options['osvariant']}-{$options['usage']}";
} elseif($options['osvariant'] === "{$options['os']}-scoop") {
$file = "{$options['osvariant']}-" . ($options['version'] == $latestPhpVersion ? 'main' : 'versions');
} else {
$file = "{$options['osvariant']}";
}

View File

@@ -0,0 +1,11 @@
<p>
On the command line, run the following commands:
</p>
<pre><code class="language-powershell line-numbers">
# Download and install Scoop.
powershell -c "irm https://get.scoop.sh | iex"
# Download and install PHP.
scoop bucket add main
scoop install main/php
</code></pre>

View File

@@ -7,5 +7,5 @@ powershell -c "irm https://get.scoop.sh | iex"
# Download and install PHP.
scoop bucket add versions
scoop install php<?= $versionNoDot; ?>
scoop install versions/php<?= $versionNoDot; ?>
</code></pre>