staabm/phpstan-psr3
PHPStan PSR3 logger rules
PHPStan rules for PSR3 compatible logger packages to report misuse and possible security risks.
Supports
- psr/log interface
- any PSR3 compatible logger package, e.g. monolog/monolog
- illuminate/log facade, Illuminate\Log\LogManager (laravel)
- REDAXO rex_logger
Related articles
Installation
To use this extension, require it in Composer:
composer require --dev staabm/phpstan-psr3
If you also install phpstan/extension-installer then you're all set!
If you don't want to use phpstan/extension-installer, include extension.neon in your project's PHPStan config:
includes:
- vendor/staabm/phpstan-psr3/config/extension.neon
Related Packages
calebdw/phpstan-laravel
A PHPStan extension for analysis of Laravel applications and packages.
7,951
33
guanguans/phpstan-rules
A set of additional rules for phpstan/phpstan. - 一套针对 `phpstan/phpstan` 的附...
8,260
1
prettyyellowdog/lumenstan
Lumenstan - Discover bugs in your code without running it. A phpstan/phpstan wra...
184
0
larastan/larastan
Larastan - Discover bugs in your code without running it. A phpstan/phpstan exte...
77,856,324
6,537
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| 1.0.3 | ^7.4 | | MIT | |
| 1.0.2 | ^7.4 | | MIT | |
| 1.0.1 | ^7.4 | | MIT | |
| 1.0 | ^8.1 | MIT |