Skip to content

Commit 7d9ada4

Browse files
author
Manuel Selbach
committed
[TASK] Update configuration on how to with use phpstan/extension-installer
This updates the configuration part on how to use this extension with or without phpstan/extension-installer.
1 parent 1902fa9 commit 7d9ada4

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,27 @@
33
TYPO3 CMS class reflection extension for PHPStan & framework-specific rules
44

55
## Configuration
6-
Put this into your phpstan.neon config:
6+
7+
To use this extension, require it in [Composer](https://getcomposer.org/):
8+
9+
```
10+
composer require --dev saschaegerer/phpstan-typo3
11+
```
12+
13+
If you also install [phpstan/extension-installer](https://github.com/phpstan/extension-installer) then you're all set!
14+
15+
<details>
16+
<summary>Manual installation</summary>
17+
18+
If you don't want to use `phpstan/extension-installer`, put this into your phpstan.neon config:
719

820
```
921
includes:
1022
- vendor/saschaegerer/phpstan-typo3/extension.neon
1123
```
24+
</details>
25+
26+
## Additional Configuration
1227

1328
If you do use constants of TYPO3 core you may have to
1429
bootstrap TYPO3 first. This can be done by using the

0 commit comments

Comments
 (0)