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

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

felipecwb/container
===================

A Simple PHP Data Container.

1.0(9y ago)014MITPHP

Since Nov 17Pushed 9y ago1 watchersCompare

[ Source](https://github.com/felipecwb/phpcontainer)[ Packagist](https://packagist.org/packages/felipecwb/container)[ Docs](https://github.com/felipecwb/simple-container)[ RSS](/packages/felipecwb-container/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

PHP Container
=============

[](#php-container)

A Simple PHP Data Container

`composer require "felipecwb/container"`

```
use Felipecwb\Container;

$container = new Container();
$container->set('config', [
    'environment' => 'dev',
    'database'    => 'sqlite::memory:'
]);

$container->get('config'); // Array

$container->set('db', function ($c) {
    // Container instance as first argument on closures
    $config = $c->get('config');

    return new PDO(
        $config['database'],
        null,
        null,
        array(PDO::ATTR_PERSISTENT => true)
    );
});

//lazy load
$container->getDb(); //PDO
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

3513d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

container

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[psr/container

Common Container Interface (PHP FIG PSR-11)

10.0k1.1B4.5k](/packages/psr-container)[pimple/pimple

Pimple, a simple Dependency Injection Container

2.7k133.2M1.4k](/packages/pimple-pimple)[php-di/php-di

The dependency injection container for humans

2.9k55.5M1.2k](/packages/php-di-php-di)[league/container

A fast and intuitive dependency injection container.

86894.4M422](/packages/league-container)[dvdoug/boxpacker

An implementation of the 3D (actually 4D) bin packing/knapsack problem (aka creating parcels by putting items into boxes)

6562.9M23](/packages/dvdoug-boxpacker)[league/tactician-container

Tactician integration for any container implementing PSR-11

7710.3M24](/packages/league-tactician-container)

PHPackages © 2026

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