https://github.com/staabm/phpstan-psr3
FIG PSR3 PHPStan rules
https://github.com/staabm/phpstan-psr3
Last synced: about 1 year ago
JSON representation
FIG PSR3 PHPStan rules
- Host: GitHub
- URL: https://github.com/staabm/phpstan-psr3
- Owner: staabm
- License: mit
- Created: 2025-04-22T06:21:35.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-02T05:15:56.000Z (about 1 year ago)
- Last Synced: 2025-06-02T15:35:25.355Z (about 1 year ago)
- Language: PHP
- Size: 29.3 KB
- Stars: 21
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# PHPStan PSR3 logger rules
PHPStan rules for [PSR3](https://www.php-fig.org/psr/psr-3/) 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
- [Using PSR-3 placeholders properly](https://peakd.com/hive-168588/@crell/using-psr-3-placeholders-properly) by [@crell](https://github.com/Crell)
## Installation
To use this extension, require it in [Composer](https://getcomposer.org/):
```
composer require --dev staabm/phpstan-psr3
```
If you also install [phpstan/extension-installer](https://github.com/phpstan/extension-installer) then you're all set!
Manual installation
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
```