PHP 7.4+
No release in over a year
FIG PSR3 PHPStan rules
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

^8 || ^9 || ^10 || ^11 || ^12
^8 || ^9 || ^10 || ^11 || ^12
monolog/monolog
^2 || ^3.9
php-parallel-lint/php-parallel-lint
^1.4
phpstan/extension-installer
^1.4.3
phpstan/phpstan-deprecation-rules
^2.0.1
phpstan/phpstan-phpunit
^2.0.6
phpstan/phpstan-strict-rules
^2.0.4
phpunit/phpunit
^9 || ^10.5.45
redaxo/source
^5
symplify/easy-coding-standard
^12.5.11
tomasvotruba/unused-public
^2.0.1

Runtime

psr/log
^1.0 || ^2.0 || ^3.0
phpstan/phpstan
^2.0
 Project Readme

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!

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