Skip to content

Commit ba65fe6

Browse files
committed
Installation instructions
1 parent 356ee9e commit ba65fe6

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,31 @@ It also contains these framework-specific rules (can be enabled separately):
2424
* Do not extend Nette\Object, use Nette\SmartObject trait instead
2525
* Rethrow exceptions that are always meant to be rethrown (like `AbortException`)
2626

27-
## Usage
27+
28+
## Installation
2829

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

31-
```bash
32+
```
3233
composer require --dev phpstan/phpstan-nette
3334
```
3435

35-
And include extension.neon in your project's PHPStan config:
36+
If you also install [phpstan/extension-installer](https://github.com/phpstan/extension-installer) then you're all set!
37+
38+
<details>
39+
<summary>Manual installation</summary>
40+
41+
If you don't want to use `phpstan/extension-installer`, include extension.neon in your project's PHPStan config:
3642

37-
```yaml
43+
```
3844
includes:
39-
- vendor/phpstan/phpstan-nette/extension.neon
45+
- vendor/phpstan/phpstan-nette/extension.neon
4046
```
4147

4248
To perform framework-specific checks, include also this file:
4349

44-
```yaml
45-
- vendor/phpstan/phpstan-nette/rules.neon
4650
```
51+
- vendor/phpstan/phpstan-nette/rules.neon
52+
```
53+
54+
</details>

0 commit comments

Comments
 (0)