You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/INSTALLATION.md
+23-17Lines changed: 23 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
## Which version to chose?
4
4
5
5
We encourage to use a stable PHP release with active support.
6
-
Currently this is **PHP 8.1, 8.2 and 8.3**.
6
+
Currently this is **PHP 8.2, 8.3 and 8.4**.
7
7
Details on current releases and their timelines can be found in [the official PHP documentation](https://www.php.net/supported-versions.php).
8
8
9
9
## Install PHP
@@ -38,9 +38,9 @@ For further instructions, read the PHP manual on [Installation on Unix systems](
38
38
39
39
While PHP is often bundled with macOS, it is often outdated.
40
40
We recommended installing PHP through [Homebrew](https://brew.sh/).
41
-
You can install Homebrew following the instructions [here](https://brew.sh/#install).
41
+
You can install Homebrew following the instructions [on their homepage](https://brew.sh/#install).
42
42
43
-
To confirm its installation try the following command, it should output Homebrew `4.2.x` at the time of this writing.
43
+
To confirm its installation try the following command, it should output Homebrew `4.5.x` at the time of this writing.
44
44
45
45
```shell
46
46
brew --version
@@ -49,10 +49,10 @@ brew --version
49
49
Install PHP via homebrew
50
50
51
51
```shell
52
-
brew install php@8.3
52
+
brew install php@8.4
53
53
```
54
54
55
-
This should display the now installed version of PHP, at least version `8.1.0`.
55
+
This should display the now installed version of PHP, at least version `8.2.0`.
56
56
57
57
```shell
58
58
php -v
@@ -77,12 +77,12 @@ You will also need [Docker](https://docs.docker.com/engine/install/).
77
77
78
78
If you want to use a different OS, see instruction on [php.net/manual/en/install](https://www.php.net/manual/en/install.php).
79
79
80
-
## Install Composer
81
-
82
-
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.
83
-
84
80
## Install PHPUnit
85
81
82
+
~~~~exercism/note
83
+
PHPUnit 12 is not supported, yet!
84
+
~~~~
85
+
86
86
### Via PHP Archive (PHAR)
87
87
88
88
The easiest way to use PHPUnit for Exercism exercises is downloading a distribution that is packaged as a PHP Archive (PHAR), which is also the recommended way to use PHPUnit.
@@ -91,7 +91,7 @@ Store the PHAR where you stored the `exercism` CLI to run PHPUnit from wherever
91
91
You can download a release of PHPUnit packages as a PHP archive:
PHPUnit 11.5.45 by Sebastian Bergmann and contributors.
117
119
```
118
-
PHPUnit 10.5.45 by Sebastian Bergmann and contributors.
119
120
120
-
```
121
+
You can also follow the official [Installing PHPUnit instructions](https://docs.phpunit.de/en/11.5/installation.html#installing-phpunit) to install PHPUnit.
121
122
123
+
### Via Composer
122
124
123
-
You can also follow the official [Installing PHPUnit instructions](https://docs.phpunit.de/en/10.5/installation.html#installing-phpunit) to install PHPUnit.
125
+
PHPUnit version 11 can also be installed via [Composer](https://getcomposer.org).
124
126
125
-
### Via Composer
127
+
#### Install Composer
128
+
129
+
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.
130
+
131
+
#### Add PHPUnit as global tool
126
132
127
-
PHPUnit version 10 can also be installed globally via [Composer](https://getcomposer.org), using the following command:
133
+
Using the following command:
128
134
129
135
```shell
130
-
composer global require phpunit/phpunit ^10.5
136
+
composer global require phpunit/phpunit ^11.5
131
137
```
132
138
133
-
Please make sure you install version 10.5 or later.
139
+
Please make sure you install version 11.5 or later.
To get help if you're having trouble, you can use one of the following resources:
3
+
To get help if you're having trouble, you can use one of the following resources:
4
4
5
-
-[/r/php](https://www.reddit.com/r/php) is the PHP subreddit.
6
-
-[StackOverflow](https://stackoverflow.com/questions/tagged/php) can be used to search for your problem and see if it has been answered already. You can also ask and answer questions.
5
+
-[/r/php](https://www.reddit.com/r/php) is the PHP subreddit.
6
+
-[StackOverflow](https://stackoverflow.com/questions/tagged/php) can be used to search for your problem and see if it has been answered already. You can also ask and answer questions.
0 commit comments