@@ -56,40 +56,43 @@ function option(string $value, string $desc, $attributes = []): string
5656 'linux ' => [
5757 'name ' => 'Linux ' ,
5858 'variants ' => [
59- 'linux-deb-buster ' => 'Debian Buster ' ,
60- 'linux-deb-bullseye ' => 'Debian Bullseye ' ,
61- 'linux-deb-bookworm ' => 'Debian Bookworm ' ,
62- 'linux-rpm-fedora41 ' => 'Fedora 41 ' ,
63- 'linux-rpm-fedora42 ' => 'Fedora 42 ' ,
64- 'linux-rpm-redhat ' => 'RedHat ' ,
59+ 'linux-debian ' => 'Debian ' ,
60+ 'linux-fedora ' => 'Fedora ' ,
61+ 'linux-redhat ' => 'RedHat ' ,
62+ 'linux-ubuntu ' => 'Ubuntu ' ,
6563 ],
6664 ],
6765 'osx ' => [
6866 'name ' => 'macOS ' ,
6967 'variants ' => [
70- 'osx-latest ' => 'macOS Latest ' ,
68+ 'osx-homebrew ' => 'Homebrew/Brew ' ,
69+ 'osx-homebrew-php ' => 'Homebrew/Homebrew-PHP ' ,
70+ 'osx-macports ' => 'MacPorts ' ,
7171 ],
7272 ],
7373 'windows ' => [
7474 'name ' => 'Windows ' ,
7575 'variants ' => [
76- 'windows-wsl ' => 'Windows with WSL ' ,
77- 'windows-normal ' => 'Windows without WSL ' ,
76+ 'windows-native ' => 'Windows Native Build ' ,
77+ 'windows-chocolatey ' => 'Windows with Chocolatey ' ,
78+ 'windows-scoop ' => 'Windows with Scoop ' ,
79+ 'windows-wsl-debian ' => 'Windows with WSL/Debian ' ,
80+ 'windows-wsl-ubuntu ' => 'Windows with WSL/Ubuntu ' ,
7881 ],
7982 ],
8083];
8184
8285$ versions = [
83- 'php84 ' => 'version 8.4 ' ,
84- 'php83 ' => 'version 8.3 ' ,
85- 'php82 ' => 'version 8.2 ' ,
86- 'php81 ' => 'version 8.1 ' ,
86+ '8.4 ' => 'version 8.4 ' ,
87+ '8.3 ' => 'version 8.3 ' ,
88+ '8.2 ' => 'version 8.2 ' ,
89+ '8.1 ' => 'version 8.1 ' ,
8790 'default ' => 'OS default version ' ,
8891];
8992
9093$ defaults = [
9194 'os ' => 'linux ' ,
92- 'version ' => 'php84 ' ,
95+ 'version ' => 'default ' ,
9396 'usage ' => 'web ' ,
9497];
9598
@@ -160,26 +163,10 @@ function option(string $value, string $desc, $attributes = []): string
160163
161164<h2>Instructions</h2>
162165<div id="instructions" class="instructions">
163- <?php include 'downloads-get-instructions.php ' ; ?>
166+ <?php $ instructionsShown = include 'downloads-get-instructions.php ' ; ?>
164167</div>
165168
166- <h2>Binaries</h2>
167-
168- <p>
169- <a href="https://windows.php.net/download/">Binaries are available for
170- Microsoft Windows</a>. The PHP project does not currently release binary packages
171- for other platforms such as Linux or macOS, but they are packaged by distributions
172- and other providers. For more information, see:
173-
174- <ul>
175- <li>
176- <a href="/manual/install.unix.php">Installation instructions for Unix systems</a>
177- </li>
178- <li>
179- <a href="/manual/install.macosx.php">Installation instructions for macOS</a>
180- </li>
181- </ul>
182- </p>
169+ <?php if (!$ instructionsShown ): ?>
183170
184171<h2>Source Code</h2>
185172<?php show_source_releases (); ?>
@@ -201,6 +188,26 @@ function option(string $value, string $desc, $attributes = []): string
201188 </a>
202189</p>
203190
191+ <h2>Binaries</h2>
192+
193+ <p>
194+ <a href="https://windows.php.net/download/">Binaries are available for
195+ Microsoft Windows</a>. The PHP project does not currently release binary packages
196+ for other platforms such as Linux or macOS, but they are packaged by distributions
197+ and other providers. For more information, see:
198+
199+ <ul>
200+ <li>
201+ <a href="/manual/install.unix.php">Installation instructions for Unix systems</a>
202+ </li>
203+ <li>
204+ <a href="/manual/install.macosx.php">Installation instructions for macOS</a>
205+ </li>
206+ </ul>
207+ </p>
208+
209+ <?php endif ; ?>
210+
204211 <script>
205212 window.onload = function () {
206213 let form = document.getElementById("instructions-form")
0 commit comments