Skip to content

Commit ea63812

Browse files
committed
README - extension-installer
1 parent 9fac3a7 commit ea63812

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,34 @@ This extension provides following features:
1818
* Adds missing `matching` method on `Doctrine\Common\Collections\Collection`. This can be turned off by setting `parameters.doctrine.allCollectionsSelectable` to `false`.
1919
* Also supports Doctrine ODM.
2020

21-
## Usage
21+
## Installation
2222

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

2525
```
2626
composer require --dev phpstan/phpstan-doctrine
2727
```
2828

29-
Include extension.neon in your project's PHPStan config:
29+
If you also install [phpstan/extension-installer](https://github.com/phpstan/extension-installer) then you're all set!
30+
31+
<details>
32+
<summary>Manual installation</summary>
33+
34+
If you don't want to use `phpstan/extension-installer`, include extension.neon in your project's PHPStan config:
3035

3136
```
3237
includes:
33-
- vendor/phpstan/phpstan-doctrine/extension.neon
38+
- vendor/phpstan/phpstan-doctrine/extension.neon
3439
```
3540

3641
If you're interested in DQL/QueryBuilder validation, include also `rules.neon` (you will also need to provide the `objectManagerLoader`, see below):
3742

3843
```
3944
includes:
40-
- vendor/phpstan/phpstan-doctrine/rules.neon
45+
- vendor/phpstan/phpstan-doctrine/rules.neon
4146
```
47+
</details>
48+
4249

4350
## Configuration
4451

0 commit comments

Comments
 (0)