-
-
Notifications
You must be signed in to change notification settings - Fork 139
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade track to PHP 8.1 - 8.3 and PHPUnit 10.5 (#704)
Co-authored-by: homersimpsons <[email protected]>
- Loading branch information
1 parent
a361148
commit 215022a
Showing
7 changed files
with
57 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,49 +2,60 @@ | |
|
||
## Which version to chose? | ||
|
||
We encourage to use a stable PHP release with active support. Currently this is **PHP 8.0, 8.1 and 8.2**. Details on current releases and their timelines can be found at [php.net/supported-versions](https://www.php.net/supported-versions.php). | ||
We encourage to use a stable PHP release with active support. | ||
Currently this is **PHP 8.1, 8.2 and 8.3**. | ||
Details on current releases and their timelines can be found in [the official PHP documentation](https://www.php.net/supported-versions.php). | ||
|
||
## Install PHP | ||
|
||
Most package managers for Linux / macOS provide pre-built packages. | ||
PHP can be downloaded and built from source, available at [php.net/downloads.php](https://php.net/downloads.php) or [windows.php.net/download](https://windows.php.net/download). | ||
|
||
> Note: A web server such as nginx or Apache HTTP server is not required to complete the exercises. | ||
~~~~exercism/note | ||
A web server such as nginx or Apache HTTP server is not required to complete the exercises. | ||
~~~~ | ||
|
||
### Linux | ||
|
||
Different distributions have different methods. You should be able to | ||
Different distributions have different methods. | ||
You should be able to | ||
|
||
```bash | ||
$ yum install php | ||
```shell | ||
yum install php | ||
``` | ||
|
||
or | ||
|
||
```bash | ||
$ apt-get install php | ||
```shell | ||
apt-get install php | ||
``` | ||
|
||
depending on your repository manager. | ||
depending on your package manager. | ||
|
||
For further instructions, read the manual on [Installation on Unix systems](https://www.php.net/manual/en/install.unix.php). | ||
For further instructions, read the PHP manual on [Installation on Unix systems](https://www.php.net/manual/en/install.unix.php). | ||
|
||
### macOS | ||
|
||
While PHP is often bundled with macOS, it is often outdated. We recommended installing PHP through [Homebrew](https://brew.sh/). You can install Homebrew following the instructions [here](https://brew.sh/#install). | ||
While PHP is often bundled with macOS, it is often outdated. | ||
We recommended installing PHP through [Homebrew](https://brew.sh/). | ||
You can install Homebrew following the instructions [here](https://brew.sh/#install). | ||
|
||
To confirm its installation try the following command, it should output Homebrew `3.2.x` at the time of this writing. | ||
```bash | ||
$ brew --version | ||
To confirm its installation try the following command, it should output Homebrew `4.2.x` at the time of this writing. | ||
|
||
```shell | ||
brew --version | ||
``` | ||
|
||
Install PHP via homebrew | ||
```bash | ||
$ brew install [email protected] | ||
|
||
```shell | ||
brew install [email protected] | ||
``` | ||
|
||
This should display the now installed version of PHP, at least version `8.0.x`. | ||
```bash | ||
$ php -v | ||
This should display the now installed version of PHP, at least version `8.1.0`. | ||
|
||
```shell | ||
php -v | ||
``` | ||
|
||
For further instructions, read the manual on [Installation on macOS](https://www.php.net/manual/en/install.macosx.php). | ||
|
@@ -66,21 +77,22 @@ You will also need [Docker](https://docs.docker.com/engine/install/). | |
|
||
If you want to use a different OS, see instruction on [php.net/manual/en/install](https://www.php.net/manual/en/install.php). | ||
|
||
### Install Composer | ||
Install [Composer](https://getcomposer.org) [here](https://getcomposer.org/doc/00-intro.md) following your devices OS installation instructions. We recommend installing it globally for ease of use. | ||
## Install Composer | ||
|
||
Install [Composer](https://getcomposer.org) following your devices OS [installation instructions](https://getcomposer.org/doc/00-intro.md). We recommend installing it globally for ease of use. | ||
|
||
### Install PHPUnit | ||
## Install PHPUnit | ||
|
||
#### Via Composer | ||
### Via Composer | ||
|
||
PHPUnit version 9 can be installed globally via [Composer](https://getcomposer.org), using the following command. | ||
PHPUnit version 10 can be installed globally via [Composer](https://getcomposer.org), using the following command: | ||
|
||
```bash | ||
> composer global require phpunit/phpunit ^9 | ||
```shell | ||
composer global require phpunit/phpunit ^10.5 | ||
``` | ||
|
||
If you are using PHP 8+ make sure you install at version 9.5 or later. | ||
Please make sure you install version 10.5 or later. | ||
|
||
#### Manual installation | ||
### Manual installation | ||
|
||
If you are not using Composer package manager, follow the official [Installing PHPUnit instructions](https://phpunit.readthedocs.io/en/9.5/installation.html). | ||
If you are not using Composer package manager, follow the official [Installing PHPUnit instructions](https://docs.phpunit.de/en/10.5/installation.html#installing-phpunit). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters