Skip to content

Commit b2e743c

Browse files
committed
Installation instructions
1 parent fbf2ad5 commit b2e743c

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

README.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,23 +66,31 @@ public function testSomething()
6666
}
6767
```
6868

69-
## Usage
69+
70+
## Installation
7071

7172
To use this extension, require it in [Composer](https://getcomposer.org/):
7273

73-
```bash
74+
```
7475
composer require --dev phpstan/phpstan-phpunit
7576
```
7677

77-
And include extension.neon in your project's PHPStan config:
78+
If you also install [phpstan/extension-installer](https://github.com/phpstan/extension-installer) then you're all set!
79+
80+
<details>
81+
<summary>Manual installation</summary>
82+
83+
If you don't want to use `phpstan/extension-installer`, include extension.neon in your project's PHPStan config:
7884

7985
```
8086
includes:
81-
- vendor/phpstan/phpstan-phpunit/extension.neon
87+
- vendor/phpstan/phpstan-phpunit/extension.neon
8288
```
8389

8490
To perform framework-specific checks, include also this file:
8591

8692
```
87-
- vendor/phpstan/phpstan-phpunit/rules.neon
93+
- vendor/phpstan/phpstan-phpunit/rules.neon
8894
```
95+
96+
</details>

0 commit comments

Comments
 (0)