PHPackages                             nouvu/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. nouvu/container

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

nouvu/container
===============

Container php8

v2.1.2(4y ago)0811MITPHPPHP ^8.0

Since Jul 19Pushed 4y agoCompare

[ Source](https://github.com/MouseZver/ContainerPHP)[ Packagist](https://packagist.org/packages/nouvu/container)[ Docs](https://github.com/MouseZver/ContainerPHP)[ RSS](/packages/nouvu-container/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (8)Dependencies (1)Versions (9)Used By (1)

Nouvu/Container DI - Lazy loading
=================================

[](#nouvucontainer-di---lazy-loading)

[![Latest Unstable Version](https://camo.githubusercontent.com/4bf39853f6971ed7a9cb8d1c0c05e28f2f75324813bb02d12dccb5c226324749/68747470733a2f2f706f7365722e707567782e6f72672f4e6f7576752f636f6e7461696e65722f76)](https://packagist.org/packages/nouvu/container) [![License](https://camo.githubusercontent.com/30a13a00d136ca56634f5ad890c7e46c65a03f91f257a259aefbea24499f1c46/68747470733a2f2f706f7365722e707567782e6f72672f6e6f7576752f636f6e7461696e65722f6c6963656e7365)](https://packagist.org/packages/nouvu/container)

### Composer

[](#composer)

```
composer require nouvu/container:^2.1.2
```

Examples
--------

[](#examples)

```
use Nouvu\Container\Container;
use Psr\Container\ContainerInterface;

require 'vendor/autoload.php';

class TestClass
{
    private int $int = 1;

    public function add(): void
    {
        $this -> int++;
    }

    public function get(): int
    {
        return $this -> int;
    }
}

//---------------------------------------

$container = new Container;

$container -> set( \Test :: class, function ( ContainerInterface $Container ): TestClass
{
    return new TestClass;
} );

//---------------------------------------

$test = $container -> get( \Test :: class ); // TestClass

$test -> add();

echo $test -> get(); // 2

$container -> reset( \Test :: class ); // reset class

$test = $container -> get( \Test :: class ); // new TestClass

echo $test -> get(); // 1
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

Established project with proven stability

 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

Every ~83 days

Recently: every ~35 days

Total

8

Last Release

1545d ago

Major Versions

v1.1 → v2.02021-10-04

PHP version history (2 changes)v1.0PHP &gt;=7.4

v2.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/101aadda0f8f67a3fe83cd805856f28aa317c8591667758d30e67ba1ef6ea53c?d=identicon)[MouseZver](/maintainers/MouseZver)

---

Top Contributors

[![MouseZver](https://avatars.githubusercontent.com/u/28458679?v=4)](https://github.com/MouseZver "MouseZver (18 commits)")

---

Tags

containerphp8

### Embed Badge

![Health badge](/badges/nouvu-container/health.svg)

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

###  Alternatives

[pimple/pimple

Pimple, a simple Dependency Injection Container

2.7k130.5M1.4k](/packages/pimple-pimple)[league/container

A fast and intuitive dependency injection container.

86387.8M343](/packages/league-container)[php-di/php-di

The dependency injection container for humans

2.8k48.9M994](/packages/php-di-php-di)[aura/di

A serializable dependency injection container with constructor and setter injection, interface and trait awareness, configuration inheritance, and much more.

356968.3k58](/packages/aura-di)[league/tactician-container

Tactician integration for any container implementing PSR-11

7710.1M23](/packages/league-tactician-container)[acclimate/container

Provides adapters for various third-party service containers.

219390.6k15](/packages/acclimate-container)

PHPackages © 2026

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