Skip to content

Commit 011a8d3

Browse files
committed
Installation instructions
1 parent a203a7a commit 011a8d3

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

README.md

+14-4
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,28 @@
3030

3131
Additional rules are coming in subsequent releases!
3232

33-
## Usage
3433

35-
To use these rules, require it in [Composer](https://getcomposer.org/):
34+
## Installation
35+
36+
To use this extension, require it in [Composer](https://getcomposer.org/):
3637

3738
```
3839
composer require --dev phpstan/phpstan-strict-rules
3940
```
4041

41-
And include rules.neon in your project's PHPStan config:
42+
If you also install [phpstan/extension-installer](https://github.com/phpstan/extension-installer) then you're all set!
43+
44+
<details>
45+
<summary>Manual installation</summary>
46+
47+
If you don't want to use `phpstan/extension-installer`, include rules.neon in your project's PHPStan config:
4248

4349
```
4450
includes:
45-
- vendor/phpstan/phpstan-strict-rules/rules.neon
51+
- vendor/phpstan/phpstan-strict-rules/rules.neon
4652
```
53+
</details>
54+
4755

4856
## Enabling rules one-by-one
4957

@@ -61,3 +69,5 @@ services:
6169
tags:
6270
- phpstan.rules.rule
6371
```
72+
73+
*Unfortunately, you cannot use phpstan/extension-installer in this case.*

0 commit comments

Comments
 (0)