Author: Shivam Mathur (shivammathur)
Date: 2025-09-08T19:31:34+05:30

Commit: 
https://github.com/php/web-php/commit/53f54f7a2332e5a7e9bd6b43cacbee35fb4fc698
Raw diff: 
https://github.com/php/web-php/commit/53f54f7a2332e5a7e9bd6b43cacbee35fb4fc698.diff

Add docker to the downloads page.

Changed paths:
  A  include/download-instructions/linux-docker-cli-community.php
  A  include/download-instructions/linux-docker-cli-default.php
  A  include/download-instructions/linux-docker-web-community.php
  A  include/download-instructions/linux-docker-web-default.php
  A  include/download-instructions/osx-docker.php
  A  include/download-instructions/windows-docker.php
  M  downloads.php


Diff:

diff --git a/downloads.php b/downloads.php
index 6646fa754d..4029a263a9 100644
--- a/downloads.php
+++ b/downloads.php
@@ -68,6 +68,7 @@ function option(string $value, string $desc, $attributes = 
[]): string
             'linux-fedora' => 'Fedora',
             'linux-redhat' => 'RedHat',
             'linux-ubuntu' => 'Ubuntu',
+            'linux-docker' => 'Docker',
         ],
     ],
     'osx' => [
@@ -75,6 +76,7 @@ function option(string $value, string $desc, $attributes = 
[]): string
         'variants' => [
             'osx-homebrew' => 'Homebrew/Brew',
             'osx-homebrew-php' => 'Homebrew/Homebrew-PHP',
+            'osx-docker' => 'Docker',
             'osx-macports' => 'MacPorts',
         ],
     ],
@@ -85,6 +87,7 @@ function option(string $value, string $desc, $attributes = 
[]): string
             'windows-native' => 'Windows Native Build',
             'windows-chocolatey' => 'Windows with Chocolatey',
             'windows-scoop' => 'Windows with Scoop',
+            'windows-docker' => 'Windows with Docker',
             'windows-wsl-debian' => 'Windows with WSL/Debian',
             'windows-wsl-ubuntu' => 'Windows with WSL/Ubuntu',
         ],
diff --git a/include/download-instructions/linux-docker-cli-community.php 
b/include/download-instructions/linux-docker-cli-community.php
new file mode 100644
index 0000000000..943a8f6488
--- /dev/null
+++ b/include/download-instructions/linux-docker-cli-community.php
@@ -0,0 +1,10 @@
+<p>
+On the command line, run the following commands:
+</p>
+<pre><code class="language-bash line-numbers">
+# Pull the PHP Docker image.
+docker pull php:<?= $version; ?>-cli
+
+# Launch a container with PHP.
+docker run --rm -it --entrypoint bash php:<?= $version; ?>-cli
+</code></pre>
diff --git a/include/download-instructions/linux-docker-cli-default.php 
b/include/download-instructions/linux-docker-cli-default.php
new file mode 100644
index 0000000000..282372e9dc
--- /dev/null
+++ b/include/download-instructions/linux-docker-cli-default.php
@@ -0,0 +1,10 @@
+<p>
+On the command line, run the following commands:
+</p>
+<pre><code class="language-bash line-numbers">
+# Pull the PHP Docker image.
+docker pull php-cli
+
+# Launch a container with PHP.
+docker run --rm -it --entrypoint bash php-cli
+</code></pre>
diff --git a/include/download-instructions/linux-docker-web-community.php 
b/include/download-instructions/linux-docker-web-community.php
new file mode 100644
index 0000000000..27ed68ad54
--- /dev/null
+++ b/include/download-instructions/linux-docker-web-community.php
@@ -0,0 +1,10 @@
+<p>
+On the command line, run the following commands:
+</p>
+<pre><code class="language-bash line-numbers">
+# Pull the PHP Docker image.
+docker pull php:<?= $version; ?>-fpm
+
+# Launch a container with PHP.
+docker run --rm -it --entrypoint bash php:<?= $version; ?>-fpm
+</code></pre>
diff --git a/include/download-instructions/linux-docker-web-default.php 
b/include/download-instructions/linux-docker-web-default.php
new file mode 100644
index 0000000000..7b8ba724be
--- /dev/null
+++ b/include/download-instructions/linux-docker-web-default.php
@@ -0,0 +1,10 @@
+<p>
+On the command line, run the following commands:
+</p>
+<pre><code class="language-bash line-numbers">
+# Pull the PHP Docker image.
+docker pull php-fpm
+
+# Launch a container with PHP.
+docker run --rm -it --entrypoint bash php-fpm
+</code></pre>
diff --git a/include/download-instructions/osx-docker.php 
b/include/download-instructions/osx-docker.php
new file mode 120000
index 0000000000..a851bfe642
--- /dev/null
+++ b/include/download-instructions/osx-docker.php
@@ -0,0 +1 @@
+linux-docker-cli-community.php
\ No newline at end of file
diff --git a/include/download-instructions/windows-docker.php 
b/include/download-instructions/windows-docker.php
new file mode 120000
index 0000000000..a851bfe642
--- /dev/null
+++ b/include/download-instructions/windows-docker.php
@@ -0,0 +1 @@
+linux-docker-cli-community.php
\ No newline at end of file

Reply via email to