Author: Shivam Mathur (shivammathur)
Date: 2026-02-07T11:35:26Z
Commit:
https://github.com/php/web-php/commit/e42fbdc9ee0b761c2990e2660bfc8a490f699c65
Raw diff:
https://github.com/php/web-php/commit/e42fbdc9ee0b761c2990e2660bfc8a490f699c65.diff
Fix download instructions for scoop
Changed paths:
A include/download-instructions/windows-scoop-main.php
A include/download-instructions/windows-scoop-versions.php
D include/download-instructions/windows-scoop.php
M downloads-get-instructions.php
Diff:
diff --git a/downloads-get-instructions.php b/downloads-get-instructions.php
index 0af5138158..6a9f19e67d 100644
--- a/downloads-get-instructions.php
+++ b/downloads-get-instructions.php
@@ -57,6 +57,8 @@
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']}";
}
diff --git a/include/download-instructions/windows-scoop-main.php
b/include/download-instructions/windows-scoop-main.php
new file mode 100644
index 0000000000..231cfcf8d0
--- /dev/null
+++ b/include/download-instructions/windows-scoop-main.php
@@ -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>
diff --git a/include/download-instructions/windows-scoop.php
b/include/download-instructions/windows-scoop-versions.php
similarity index 84%
rename from include/download-instructions/windows-scoop.php
rename to include/download-instructions/windows-scoop-versions.php
index b95b7d1992..c2a1d61ff1 100644
--- a/include/download-instructions/windows-scoop.php
+++ b/include/download-instructions/windows-scoop-versions.php
@@ -7,5 +7,5 @@
# Download and install PHP.
scoop bucket add versions
-scoop install php<?= $versionNoDot; ?>
+scoop install versions/php<?= $versionNoDot; ?>
</code></pre>