PHPackages                             chevron/containers - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. chevron/containers

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

chevron/containers
==================

an implementation of the registry pattern for fun and profit

v5.3.0(9y ago)01682BSD-3-ClausePHPPHP &gt;=5.4.0

Since May 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/chevronphp/containers)[ Packagist](https://packagist.org/packages/chevron/containers)[ Docs](http://github.com/chevronphp/containers)[ RSS](/packages/chevron-containers/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (19)Used By (2)

chevron/containers
==================

[](#chevroncontainers)

Containers is a simple implementation of a registry pattern. The base container takes values and returns them, the deferred container is built to handle callables, and the reference container is meant to handle maps--wait for it--by reference.

Containers started as a pretty basic set of registry objects because you end up using them everywhere. Deferred, however, ended up making a pretty good simple DI container. But "Deferred" isn't as intuitive as "Di", which is why there is a DiInterface (for typehints) and a ServiceLoader for creating and populating the Di.

Peruse the tests or, if present, the examples directory to see usage.

See [packagist](https://packagist.org/packages/chevron/containers) for version/installation info.

[![Latest Stable Version](https://camo.githubusercontent.com/146b6f052721ef894da77d229bee9d9856886c9505647251d25ab69707e6ccaf/68747470733a2f2f706f7365722e707567782e6f72672f63686576726f6e2f636f6e7461696e6572732f762f737461626c652e737667)](https://packagist.org/packages/chevron/containers)[![Build Status](https://camo.githubusercontent.com/0680c21bab5f1e5d5e47f20b2524babd7d34a906301f5b63cec36a7ccaf52069/68747470733a2f2f7472617669732d63692e6f72672f63686576726f6e7068702f636f6e7461696e6572732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/chevronphp/containers)

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity67

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 ~51 days

Recently: every ~175 days

Total

17

Last Release

3560d ago

Major Versions

v1.1.0 → v2.0.02014-05-19

v2.0.1 → v3.0.02014-07-17

v3.3.1 → v4.0.02014-08-30

v4.0.1 → v5.0.02014-11-05

PHP version history (2 changes)v1.0.0PHP &gt;=5.3.0

v3.1.1PHP &gt;=5.4.0

### Community

Maintainers

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

---

Top Contributors

[![henderjon](https://avatars.githubusercontent.com/u/114275?v=4)](https://github.com/henderjon "henderjon (46 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/chevron-containers/health.svg)

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

PHPackages © 2026

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