Skip to content

Commit

Permalink
update php/docs/intallation.md
Browse files Browse the repository at this point in the history
  • Loading branch information
A-O-Emmanuel committed Mar 5, 2025
1 parent 3925e7f commit 12769d7
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions docs/INSTALLATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,16 +83,31 @@ Install [Composer](https://getcomposer.org) following your devices OS [installat

## Install PHPUnit

### Via Composer
### Via PHP Archive (PHAR)

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.

### Manual installation

PHPUnit version 10 can be installed globally via [Composer](https://getcomposer.org), using the following command:
You can download a release of PHPUnit packages as a PHP archive:

```shell
composer global require phpunit/phpunit ^10.5
wget -O phpunit.phar https://phar.phpunit.de/phpunit-10.phar
```
Then make the PHAR executable (it is a common practice)

```shell
chmod +x phpunit.phar
```
Now you can run the PHAR.

Please make sure you install version 10.5 or later.
You can also follow the official [Installing PHPUnit instructions](https://docs.phpunit.de/en/10.5/installation.html#installing-phpunit) to Install PHPUnit via a PHP Archive (PHAR)

### Manual installation
### Via Composer

PHPUnit version 10 can also be installed globally via [Composer](https://getcomposer.org), using the following command:

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).
```shell
composer global require phpunit/phpunit ^10.5
```
Please make sure you install version 10.5 or later.

0 comments on commit 12769d7

Please sign in to comment.