PHPackages                             staabm/phpstan-psr3 - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Logging &amp; Monitoring](/categories/logging)
4. /
5. staabm/phpstan-psr3

ActivePhpstan-extension[Logging &amp; Monitoring](/categories/logging)

staabm/phpstan-psr3
===================

1.0.3(1y ago)23696.2k↓26.5%1[1 issues](https://github.com/staabm/phpstan-psr3/issues)[1 PRs](https://github.com/staabm/phpstan-psr3/pulls)2MITPHPPHP ^7.4 || ^8.0CI passing

Since Apr 22Pushed 4w ago2 watchersCompare

[ Source](https://github.com/staabm/phpstan-psr3)[ Packagist](https://packagist.org/packages/staabm/phpstan-psr3)[ GitHub Sponsors](https://github.com/staabm)[ RSS](/packages/staabm-phpstan-psr3/feed)WikiDiscussions main Synced yesterday

READMEChangelog (4)Dependencies (14)Versions (15)Used By (2)

PHPStan PSR3 logger rules
=========================

[](#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
----------------

[](#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
------------

[](#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 installationIf 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

```

###  Health Score

50

—

FairBetter than 95% of packages

Maintenance71

Regular maintenance activity

Popularity48

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 51.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

436d ago

PHP version history (2 changes)1.0PHP ^8.1

1.0.1PHP ^7.4 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/99d4e5e5fa8fb7d0782de39b43c558953d0a5881a7ba596b90ed9c312db8c4d9?d=identicon)[staabm](/maintainers/staabm)

---

Top Contributors

[![staabm](https://avatars.githubusercontent.com/u/120441?v=4)](https://github.com/staabm "staabm (20 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (18 commits)")[![tomkyle](https://avatars.githubusercontent.com/u/412560?v=4)](https://github.com/tomkyle "tomkyle (1 commits)")

---

Tags

psr-3PHPStandevstatic analysisphpstan-extensionmonologpsr-log

###  Code Quality

TestsPHPUnit

Code StyleECS

Type Coverage Yes

### Embed Badge

![Health badge](/badges/staabm-phpstan-psr3/health.svg)

```
[![Health](https://phpackages.com/badges/staabm-phpstan-psr3/health.svg)](https://phpackages.com/packages/staabm-phpstan-psr3)
```

###  Alternatives

[symfony/symfony

The Symfony PHP framework

31.4k87.2M2.2k](/packages/symfony-symfony)[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.5k55.4M8.4k](/packages/larastan-larastan)[staabm/phpstan-dba

2942.6M2](/packages/staabm-phpstan-dba)[shipmonk/dead-code-detector

Dead code detector to find unused PHP code via PHPStan extension. Can automatically remove dead PHP code. Supports libraries like Symfony, Doctrine, PHPUnit etc. Detects dead cycles. Can detect dead code that is tested.

4853.5M91](/packages/shipmonk-dead-code-detector)[staabm/phpstan-todo-by

2052.1M84](/packages/staabm-phpstan-todo-by)[struggle-for-php/sfp-phpstan-psr-log

Extra strict and opinionated psr/log (psr-3) rules for PHPStan

42317.9k9](/packages/struggle-for-php-sfp-phpstan-psr-log)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
