From 99040b6461575bfe4df109b36d61de850fed3a99 Mon Sep 17 00:00:00 2001
From: arhimede
Date: Wed, 24 Sep 2025 12:23:43 +0300
Subject: [PATCH 1/4] Add Mezzio and AlmaLinux WSL2 to download page
Signed-off-by: arhimede
---
downloads-get-instructions.php | 2 +-
downloads.php | 2 ++
include/download-instructions/fw-mezzio.php | 6 ++++++
include/download-instructions/windows-wsl-almalinux.php | 6 ++++++
4 files changed, 15 insertions(+), 1 deletion(-)
create mode 100644 include/download-instructions/fw-mezzio.php
create mode 100644 include/download-instructions/windows-wsl-almalinux.php
diff --git a/downloads-get-instructions.php b/downloads-get-instructions.php
index b60513b212..62aa2676e0 100644
--- a/downloads-get-instructions.php
+++ b/downloads-get-instructions.php
@@ -26,7 +26,7 @@
}
}
-if (in_array($options['usage'], ['fw-drupal', 'fw-laravel', 'fw-symfony', 'fw-wordpress', 'fw-joomla'])) {
+if (in_array($options['usage'], ['fw-drupal', 'fw-laravel', 'fw-symfony', 'fw-wordpress', 'fw-joomla', 'fw-mezzio'])) {
$file = "{$options['usage']}";
$options['os'] = null;
}
diff --git a/downloads.php b/downloads.php
index 4548c745a3..9697ef74d3 100644
--- a/downloads.php
+++ b/downloads.php
@@ -57,6 +57,7 @@ function option(string $value, string $desc, $attributes = []): string
'fw-drupal' => 'Drupal Development',
'fw-joomla' => 'Joomla Development',
'fw-laravel' => 'Laravel Development',
+ 'fw-mezzio' => 'Mezzio Development',
'fw-symfony' => 'Symfony Development',
'fw-wordpress' => 'WordPress Development',
];
@@ -89,6 +90,7 @@ function option(string $value, string $desc, $attributes = []): string
'windows-chocolatey' => 'Chocolatey',
'windows-scoop' => 'Scoop',
'windows-docker' => 'Docker',
+ 'windows-wsl-almalinux' => 'WSL/AlmaLinux',
'windows-wsl-debian' => 'WSL/Debian',
'windows-wsl-ubuntu' => 'WSL/Ubuntu',
],
diff --git a/include/download-instructions/fw-mezzio.php b/include/download-instructions/fw-mezzio.php
new file mode 100644
index 0000000000..758553f7a8
--- /dev/null
+++ b/include/download-instructions/fw-mezzio.php
@@ -0,0 +1,6 @@
+
+Instructions for installing PHP for Mezzio development can be found on:
+
+
+» https://docs.mezzio.dev/mezzio/v3/getting-started/quick-start/
+
diff --git a/include/download-instructions/windows-wsl-almalinux.php b/include/download-instructions/windows-wsl-almalinux.php
new file mode 100644
index 0000000000..426dc91698
--- /dev/null
+++ b/include/download-instructions/windows-wsl-almalinux.php
@@ -0,0 +1,6 @@
+
+Instructions for installing PHP for AlmaLinux 9 and 10 on Windows WSL2 can be found on:
+
+
+» https://docs.dotkernel.org/development/
+
From 0930b2db368cd43e6f615bc1c04670901e3b7031 Mon Sep 17 00:00:00 2001
From: arhimede
Date: Sat, 27 Sep 2025 19:32:00 +0300
Subject: [PATCH 2/4] Add Mezzio and AlmaLinux WSL2 to download page
Signed-off-by: arhimede
---
downloads.php | 1 +
.../linux-almalinux-cli-community.php | 35 +++++++++++++++++++
.../linux-almalinux-cli-default.php | 28 +++++++++++++++
.../linux-almalinux-web-community.php | 1 +
.../linux-almalinux-web-default.php | 1 +
.../windows-wsl-almalinux.php | 6 ----
6 files changed, 66 insertions(+), 6 deletions(-)
create mode 100644 include/download-instructions/linux-almalinux-cli-community.php
create mode 100644 include/download-instructions/linux-almalinux-cli-default.php
create mode 120000 include/download-instructions/linux-almalinux-web-community.php
create mode 120000 include/download-instructions/linux-almalinux-web-default.php
delete mode 100644 include/download-instructions/windows-wsl-almalinux.php
diff --git a/downloads.php b/downloads.php
index 9697ef74d3..7a18417a51 100644
--- a/downloads.php
+++ b/downloads.php
@@ -66,6 +66,7 @@ function option(string $value, string $desc, $attributes = []): string
'linux' => [
'name' => 'Linux',
'variants' => [
+ 'linux-almalinux' => 'AlmaLinux',
'linux-debian' => 'Debian',
'linux-fedora' => 'Fedora',
'linux-redhat' => 'RedHat',
diff --git a/include/download-instructions/linux-almalinux-cli-community.php b/include/download-instructions/linux-almalinux-cli-community.php
new file mode 100644
index 0000000000..5e48de4bfd
--- /dev/null
+++ b/include/download-instructions/linux-almalinux-cli-community.php
@@ -0,0 +1,35 @@
+
+On the command line, run the following commands:
+
+
+# add Remi repository and few utilities
+sudo dnf install epel-release dnf-utils https://rpms.remirepo.net/enterprise/remi-release-$(rpm -E %almalinux).rpm -y
+
+# define what version of PHP you want to install
+sudo dnf module enable php:remi-= $version; ?> -y
+
+# install PHP with default extensions
+sudo dnf install php -y
+
+# From now on, you can switch to a different PHP version directly, for instance 8.5
+sudo dnf module switch-to php:remi-8.5 -y
+
+
+
+
+If you want to add various PHP extensions, on the command line run the following commands:
+
+
+# add a new non-default PHP extensions, for instance php-intl
+sudo dnf install php-intl -y
+
+# add a new PECL PHP extension, for instance Redis
+sudo dnf install php-pecl-redis -y
+
+Note
+
+Instructions for setting up a development environment with PHP on AlmaLinux 9 and 10, running on Windows WSL2 or on virtual servers, can be found on:
+
+
+» https://docs.dotkernel.org/development/
+
\ No newline at end of file
diff --git a/include/download-instructions/linux-almalinux-cli-default.php b/include/download-instructions/linux-almalinux-cli-default.php
new file mode 100644
index 0000000000..57a56242a6
--- /dev/null
+++ b/include/download-instructions/linux-almalinux-cli-default.php
@@ -0,0 +1,28 @@
+
+On the command line, run the following commands:
+
+
+# update the packages
+sudo dnf update
+
+# install PHP with default extensions
+sudo dnf install php -y
+
+
+
+If you want to add various PHP extensions, on the command line run the following commands:
+
+
+# add a new non-default PHP extensions, for instance php-intl
+sudo dnf install php-intl -y
+
+# add a new PECL PHP extension, for instance Redis
+sudo dnf install php-pecl-redis -y
+
+Note
+
+Instructions for setting up a development environment with PHP on AlmaLinux 9 and 10, running on Windows WSL2 or on virtual servers, can be found on:
+
+
+» https://docs.dotkernel.org/development/
+
\ No newline at end of file
diff --git a/include/download-instructions/linux-almalinux-web-community.php b/include/download-instructions/linux-almalinux-web-community.php
new file mode 120000
index 0000000000..0ebf126d0b
--- /dev/null
+++ b/include/download-instructions/linux-almalinux-web-community.php
@@ -0,0 +1 @@
+linux-almalinux-cli-community.php
\ No newline at end of file
diff --git a/include/download-instructions/linux-almalinux-web-default.php b/include/download-instructions/linux-almalinux-web-default.php
new file mode 120000
index 0000000000..72e69357c2
--- /dev/null
+++ b/include/download-instructions/linux-almalinux-web-default.php
@@ -0,0 +1 @@
+linux-almalinux-cli-default.php
\ No newline at end of file
diff --git a/include/download-instructions/windows-wsl-almalinux.php b/include/download-instructions/windows-wsl-almalinux.php
deleted file mode 100644
index 426dc91698..0000000000
--- a/include/download-instructions/windows-wsl-almalinux.php
+++ /dev/null
@@ -1,6 +0,0 @@
-
-Instructions for installing PHP for AlmaLinux 9 and 10 on Windows WSL2 can be found on:
-
-
-» https://docs.dotkernel.org/development/
-
From 81eb989d031f61d48d47be7b72f231d1440d0b4d Mon Sep 17 00:00:00 2001
From: arhimede
Date: Sat, 27 Sep 2025 19:35:39 +0300
Subject: [PATCH 3/4] Add Mezzio and AlmaLinux WSL2 to download page
Signed-off-by: arhimede
---
downloads-get-instructions.php | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/downloads-get-instructions.php b/downloads-get-instructions.php
index 62aa2676e0..e11f2387ff 100644
--- a/downloads-get-instructions.php
+++ b/downloads-get-instructions.php
@@ -19,6 +19,10 @@
$options['os'] = 'linux';
$options['osvariant'] = 'linux-ubuntu';
}
+ if ($options['osvariant'] === 'windows-wsl-almalinux') {
+ $options['os'] = 'linux';
+ $options['osvariant'] = 'linux-almalinux';
+ }
}
if ($options['os'] === 'osx' || $options['os'] === 'windows') {
if ($options['version'] === 'default') {
From 3f27ad0efd8dd99f2554dda2c5d0da9d5b84e7bf Mon Sep 17 00:00:00 2001
From: arhimede
Date: Sat, 27 Sep 2025 21:49:30 +0300
Subject: [PATCH 4/4] Add Mezzio and AlmaLinux WSL2 to download page
Signed-off-by: arhimede
---
include/download-instructions/linux-almalinux-cli-community.php | 2 +-
include/download-instructions/linux-almalinux-cli-default.php | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/download-instructions/linux-almalinux-cli-community.php b/include/download-instructions/linux-almalinux-cli-community.php
index 5e48de4bfd..7ba4b30092 100644
--- a/include/download-instructions/linux-almalinux-cli-community.php
+++ b/include/download-instructions/linux-almalinux-cli-community.php
@@ -32,4 +32,4 @@
» https://docs.dotkernel.org/development/
-
\ No newline at end of file
+
diff --git a/include/download-instructions/linux-almalinux-cli-default.php b/include/download-instructions/linux-almalinux-cli-default.php
index 57a56242a6..9a25e093e8 100644
--- a/include/download-instructions/linux-almalinux-cli-default.php
+++ b/include/download-instructions/linux-almalinux-cli-default.php
@@ -25,4 +25,4 @@
» https://docs.dotkernel.org/development/
-
\ No newline at end of file
+