-
-
Notifications
You must be signed in to change notification settings - Fork 144
Upgrade track to PHP 8.1 - 8.3 and PHPUnit 10.5 #704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
30b0371
All PHP versions and OSses in PHPUnit 10 workflow
mk-mxp b0a8a73
Do not test with PHPUnit 9 / PHP 8.0 anymore
mk-mxp f6516f2
Update track documentation
mk-mxp dbe1960
Upgrade contribution requirements
mk-mxp e894242
Use full version
mk-mxp e3f26d1
Move link to better position
mk-mxp 7d39052
Change example file name to match content
mk-mxp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.