Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion downloads-get-instructions.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,18 @@
$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') {
$options['version'] = $latestPhpVersion;
}
}

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;
}
Expand Down
3 changes: 3 additions & 0 deletions downloads.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
];
Expand All @@ -65,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',
Expand All @@ -89,6 +91,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',
],
Expand Down
6 changes: 6 additions & 0 deletions include/download-instructions/fw-mezzio.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<p>
Instructions for installing PHP for Mezzio development can be found on:
</p>
<p>
» <a href='https://docs.mezzio.dev/mezzio/v3/getting-started/quick-start/'>https://docs.mezzio.dev/mezzio/v3/getting-started/quick-start/</a>
</p>
35 changes: 35 additions & 0 deletions include/download-instructions/linux-almalinux-cli-community.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<p>
On the command line, run the following commands:
</p>
<pre><code class="language-bash line-numbers">
# 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
</code></pre>


<p>
If you want to add various PHP extensions, on the command line run the following commands:
</p>
<pre><code class="language-bash line-numbers">
# 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
</code></pre>
<h3>Note</h3>
<p>
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:
</p>
<p>
» <a href='https://docs.dotkernel.org/development/'>https://docs.dotkernel.org/development/</a>
</p>
28 changes: 28 additions & 0 deletions include/download-instructions/linux-almalinux-cli-default.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<p>
On the command line, run the following commands:
</p>
<pre><code class="language-bash line-numbers">
# update the packages
sudo dnf update

# install PHP with default extensions
sudo dnf install php -y
</code></pre>

<p>
If you want to add various PHP extensions, on the command line run the following commands:
</p>
<pre><code class="language-bash line-numbers">
# 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
</code></pre>
<h3>Note</h3>
<p>
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:
</p>
<p>
» <a href='https://docs.dotkernel.org/development/'>https://docs.dotkernel.org/development/</a>
</p>