PHPackages                             bnf/phpstan-psr-container - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. bnf/phpstan-psr-container

ActivePhpstan-extension[PSR &amp; Standards](/categories/psr-standards)

bnf/phpstan-psr-container
=========================

PHPStan dynamic return type extension for PSR-11 ContainerInterface

1.1.0(1y ago)134.2M↓13.5%6[1 issues](https://github.com/bnf/phpstan-psr-container/issues)20GPL-2.0-or-laterPHPPHP ^7.0|^8.0

Since Aug 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/bnf/phpstan-psr-container)[ Packagist](https://packagist.org/packages/bnf/phpstan-psr-container)[ RSS](/packages/bnf-phpstan-psr-container/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (1)Dependencies (2)Versions (6)Used By (20)

PHPStan dynamic return type extension for PSR-11 ContainerInterface
===================================================================

[](#phpstan-dynamic-return-type-extension-for-psr-11-containerinterface)

Installation
------------

[](#installation)

To use this extension, require [bnf/phpstan-psr-container](https://packagist.org/packages/bnf/phpstan-psr-container)in [Composer](https://getcomposer.org/):

```
composer require --dev bnf/phpstan-psr-container

```

Include extension.neon in your project's PHPStan config or use [`phpstan/extension-installer`](https://github.com/phpstan/extension-installer):

```
includes:
    - vendor/bnf/phpstan-psr-container/extension.neon

```

###  Health Score

49

—

FairBetter than 94% of packages

Maintenance33

Infrequent updates — may be unmaintained

Popularity52

Moderate usage in the ecosystem

Community33

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 72.2% 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 ~480 days

Total

5

Last Release

636d ago

Major Versions

0.12.0 → 1.0.02021-11-25

PHP version history (2 changes)0.11.0PHP ^7.0

1.0.0PHP ^7.0|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/a8b7c224af04cc109194abd9d592618e75e05ec95ad86f2e4381b4bd110f99bd?d=identicon)[bnf](/maintainers/bnf)

---

Top Contributors

[![bnf](https://avatars.githubusercontent.com/u/473155?v=4)](https://github.com/bnf "bnf (13 commits)")[![func0der](https://avatars.githubusercontent.com/u/529819?v=4)](https://github.com/func0der "func0der (1 commits)")[![jasny](https://avatars.githubusercontent.com/u/100821?v=4)](https://github.com/jasny "jasny (1 commits)")[![lcharette](https://avatars.githubusercontent.com/u/2566513?v=4)](https://github.com/lcharette "lcharette (1 commits)")[![lolli42](https://avatars.githubusercontent.com/u/2178068?v=4)](https://github.com/lolli42 "lolli42 (1 commits)")[![MidnightDesign](https://avatars.githubusercontent.com/u/743172?v=4)](https://github.com/MidnightDesign "MidnightDesign (1 commits)")

---

Tags

PSR-11PHPStanstaticservice provider

### Embed Badge

![Health badge](/badges/bnf-phpstan-psr-container/health.svg)

```
[![Health](https://phpackages.com/badges/bnf-phpstan-psr-container/health.svg)](https://phpackages.com/packages/bnf-phpstan-psr-container)
```

###  Alternatives

[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.

5014.2M111](/packages/shipmonk-dead-code-detector)[orrison/meliorstan

Provides PHPStan rules for improved code quality by detecting code smells and possible issues. In addition to enforcing particular naming and code style conventions to reduce bike-shedding.

1920.1k6](/packages/orrison-meliorstan)[infocyph/intermix

A lightweight PHP DI container, invoker, serializer, and utility toolkit.

138.8k4](/packages/infocyph-intermix)

PHPackages © 2026

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