PHPackages                             donquixote/containerkit - 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. donquixote/containerkit

ActiveLibrary

donquixote/containerkit
=======================

0.0.0-alpha.1(10y ago)08131MITPHP

Since Jan 11Pushed 10y ago1 watchersCompare

[ Source](https://github.com/donquixote/containerkit)[ Packagist](https://packagist.org/packages/donquixote/containerkit)[ RSS](/packages/donquixote-containerkit/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (1)

[![Build Status](https://camo.githubusercontent.com/2dd30998a085ec6f8ca889d0474c48671c0b1218b59556a77acf3707a6e2ebc5/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f646f6e717569786f74652f636f6e7461696e65726b69742e706e67)](https://travis-ci.org/donquixote/containerkit)

containerkit
============

[](#containerkit)

A very minimal base class for a PHP dependency injection container with magic `__get()`, as described in

Nothing in here is auto-generated. The methods that instantiate services need to be written manually in a class extending the parent container.

Providing an alternative implementation for a service only works by extending the container.

It is recommended to add `@property` tags in the class docblock of your container class.

ContainerBase
-------------

[](#containerbase)

This is the most basic container base class. Usually you only need this one.

SettableContainer
-----------------

[](#settablecontainer)

This one has a `__set()` method in addition to the `__get()` method. Setting only works for services / values that are not already initialized.

The `__set()` allows to override specific services with actual objects, thus providing a cheap alternative to extending the container.

Stubbable container
-------------------

[](#stubbable-container)

This container is designed for a special way to deal with circular dependencies, using stubs.

Usually this is not needed. You should either avoid circular dependencies (recommended, if you can), or use a proxy somewhere in the circle.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

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

Total

2

Last Release

3771d ago

### Community

Maintainers

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

---

Top Contributors

[![donquixote](https://avatars.githubusercontent.com/u/150032?v=4)](https://github.com/donquixote "donquixote (5 commits)")

### Embed Badge

![Health badge](/badges/donquixote-containerkit/health.svg)

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

PHPackages © 2026

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