Skip to content

Commit 07b8e87

Browse files
committed
Add more details about the extension installation process
1 parent 0b29626 commit 07b8e87

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ This repository provides a PHPStan extension that can be used in both GLPI and G
66

77
To install this PHPStan extension, run the `composer require --dev glpi-project/phpstan-glpi`.
88

9+
To make this extension automatically enabled by PHPStan, you can also install the `phpstan/extension-installer` library,
10+
otherwise you will need to add it in you PHPStan configuration file in the `includes` section:
11+
```neon
12+
includes:
13+
- vendor/glpi-project/phpstan-glpi/rules.neon
14+
```
15+
See https://phpstan.org/user-guide/extension-library#installing-extensions for more information.
16+
17+
## Configuration
18+
919
The GLPI version should be detected automatically, but you can specify it in your PHPStan configuration:
1020
```yaml
1121
parameters:

0 commit comments

Comments
 (0)