PHPackages                             onepix/psr11-container-interface-generic - 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. onepix/psr11-container-interface-generic

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

onepix/psr11-container-interface-generic
========================================

A generic, type-safe container interface (PSR-compatible) with support for retrieving items of a specified type

1.0.0(1y ago)01371MITPHP

Since Jan 19Pushed 1y agoCompare

[ Source](https://github.com/onepixnet/psr11-container-interface-generic)[ Packagist](https://packagist.org/packages/onepix/psr11-container-interface-generic)[ Docs](https://github.com/onepixnet/psr11-container-interface-generic)[ RSS](/packages/onepix-psr11-container-interface-generic/feed)WikiDiscussions main Synced today

READMEChangelog (1)DependenciesVersions (2)Used By (1)

PSR-11 Container interface generic (psalm phpstan)
==================================================

[](#psr-11-container-interface-generic-psalm-phpstan)

Config
------

[](#config)

```

```

Usage
-----

[](#usage)

```
final class App
{
     /**
     * @param  ContainerInterface  $controllers
     */
    public function __construct(
        private ContainerInterface $controllers,
    ) {
    }
}
```

```
/**
 * @implements ContainerInterface
 */
final class ControllerContainer implements ContainerInterface
{
    public function get(string $id) {}

    public function has(string $id): bool {}
}
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

530d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/380c3a3697647ffa6dacfa3f41ef2d8ea43a40a12a823d380b843b57ac14750c?d=identicon)[onepix](/maintainers/onepix)

---

Top Contributors

[![Daniel217D](https://avatars.githubusercontent.com/u/26818342?v=4)](https://github.com/Daniel217D "Daniel217D (1 commits)")

---

Tags

PHPStanstatic analysispsalm

### Embed Badge

![Health badge](/badges/onepix-psr11-container-interface-generic/health.svg)

```
[![Health](https://phpackages.com/badges/onepix-psr11-container-interface-generic/health.svg)](https://phpackages.com/packages/onepix-psr11-container-interface-generic)
```

###  Alternatives

[automattic/vipwpcs

PHP\_CodeSniffer rules (sniffs) to enforce WordPress VIP minimum coding conventions

25811.4M200](/packages/automattic-vipwpcs)[inpsyde/php-coding-standards

PHP 7.4+ coding standards for Syde WordPress projects.

101172.1k47](/packages/inpsyde-php-coding-standards)[suin/phpcs-psr4-sniff

PHP\_CodeSniffer sniff that checks class name matches PSR-4 project structure.

271.9M19](/packages/suin-phpcs-psr4-sniff)[bnf/phpstan-psr-container

PHPStan dynamic return type extension for PSR-11 ContainerInterface

134.0M121](/packages/bnf-phpstan-psr-container)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.2M34](/packages/yoast-yoastcs)[lctrs/psalm-psr-container-plugin

Let Psalm understand better psr11 containers

17679.3k13](/packages/lctrs-psalm-psr-container-plugin)

PHPackages © 2026

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