Skip to content

Commit 1ce74a6

Browse files
committed
Improve download instructions
1 parent f38dfa4 commit 1ce74a6

12 files changed

+39
-10
lines changed

include/download-instructions/linux-debian-cli-community.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
On the command line, run the following commands:
33
</p>
44
<pre><code class="language-bash line-numbers">
5-
sudo apt-get update
6-
sudo apt-get install -y lsb-release ca-certificates apt-transport-https curl
7-
sudo curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
8-
sudo dpkg -i /tmp/debsuryorg-archive-keyring.deb
9-
sudo sh -c 'echo "deb [signed-by=/usr/share/keyrings/debsuryorg-archive-keyring.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" &gt; /etc/apt/sources.list.d/php.list'
10-
sudo apt-get update
5+
# Add the packages.sury.org/php repository.
6+
curl -sSL https://packages.sury.org/php/README.txt | sudo bash -x
7+
8+
# Install PHP.
119
sudo apt-get install -y php<?= $version; ?>
1210
</code></pre>

include/download-instructions/linux-debian-cli-default.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
On the command line, run the following commands:
33
</p>
44
<pre><code class="language-bash line-numbers">
5+
# Update the package lists.
56
sudo apt update
7+
8+
# Install PHP.
69
sudo apt install -y php
710
</code></pre>

include/download-instructions/linux-fedora-cli-community.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
On the command line, run the following commands:
33
</p>
44
<pre><code class="language-bash line-numbers">
5+
# Add the Remi's RPM repository.
56
sudo dnf install -y dnf-plugins-core
67
sudo dnf install -y https://rpms.remirepo.net/fedora/remi-release-$(rpm -E %fedora).rpm
78
sudo dnf module reset php -y
89
sudo dnf module enable php:remi-<?= $version; ?> -y
10+
11+
# Install PHP.
912
sudo dnf install -y php
1013
</code></pre>

include/download-instructions/linux-fedora-cli-default.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
On the command line, run the following commands:
33
</p>
44
<pre><code class="language-bash line-numbers">
5+
# Install PHP.
56
sudo dnf install -y php
67
</code></pre>

include/download-instructions/linux-ubuntu-cli-community.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22
On the command line, run the following commands:
33
</p>
44
<pre><code class="language-bash line-numbers">
5+
# Add the ondrej/php repository.
56
sudo apt update
67
sudo apt install -y software-properties-common
7-
sudo add-apt-repository ppa:ondrej/php -y
8+
sudo LC_ALL=C.UTF-8 add-apt-repository ppa:ondrej/php -y
89
sudo apt update
10+
11+
# Install PHP.
912
sudo apt install -y php<?= $version; ?>
1013
</code></pre>

include/download-instructions/linux-ubuntu-cli-default.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
On the command line, run the following commands:
33
</p>
44
<pre><code class="language-bash line-numbers">
5+
# Update the package lists.
56
sudo apt update
7+
8+
# Install PHP.
69
sudo apt install -y php
710
</code></pre>

include/download-instructions/osx-homebrew-php.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
On the command line, run the following commands:
33
</p>
44
<pre><code class="language-bash line-numbers">
5-
brew tap shivammathur/php
6-
brew install php@<?= $version; ?>
5+
# Download and install Homebrew.
6+
curl -o- https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | bash
7+
8+
# Install and link PHP.
9+
brew install shivammathur/php/php@<?= $version; ?>
710

811
brew link --force --overwrite php@<?= $version; ?>
912
</code></pre>

include/download-instructions/osx-homebrew.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
On the command line, run the following commands:
33
</p>
44
<pre><code class="language-bash line-numbers">
5+
# Download and install Homebrew.
6+
curl -o- https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | bash
7+
8+
# Install and link PHP.
59
brew install php@<?= $version; ?>
610

711
brew link --force --overwrite php@<?= $version; ?>

include/download-instructions/osx-macports.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,6 @@
22
On the command line, run the following commands:
33
</p>
44
<pre><code class="language-bash line-numbers">
5+
# Please refer to https://guide.macports.org/chunked/installing.macports.html for installing MacPorts.
56
sudo port install php<?= $versionNoDot; ?>
67
</code></pre>

include/download-instructions/windows-chocolatey.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,9 @@
22
On the command line, run the following commands:
33
</p>
44
<pre><code class="language-powershell line-numbers">
5+
# Download and install Chocolatey.
6+
powershell -c "irm https://community.chocolatey.org/install.ps1|iex"
7+
8+
# Download and install PHP.
59
choco install php --version=<?= $version; ?> -y
610
</code></pre>

0 commit comments

Comments
 (0)