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

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

hugoandrade/container-di
========================

1.0.1(1y ago)0201MITPHP

Since Jul 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/hugoramosandrade/container-di)[ Packagist](https://packagist.org/packages/hugoandrade/container-di)[ RSS](/packages/hugoandrade-container-di/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (2)Dependencies (3)Versions (4)Used By (1)

Implementation of Container Interface PSR-11
============================================

[](#implementation-of-container-interface-psr-11)

### Examples

[](#examples)

```
$container = new DI;

//set a bind between a interface and a concrete class
$container->set(SomeInterface::class, ConcreteClass::class);

// retrieve a concrete class from interface
$instance = $container->get(SomeInterface::class);

$instance->doSomethingAwesome();
```

The get method, of DI container, will resolve automatically all dependencies of a class.

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity42

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

Total

3

Last Release

703d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/99200006?v=4)[Hugo Andrade](/maintainers/hugoramosandrade)[@hugoramosandrade](https://github.com/hugoramosandrade)

---

Top Contributors

[![hugoramosandrade](https://avatars.githubusercontent.com/u/99200006?v=4)](https://github.com/hugoramosandrade "hugoramosandrade (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[symfony/dependency-injection

Allows you to standardize and centralize the way objects are constructed in your application

4.2k455.6M9.6k](/packages/symfony-dependency-injection)[illuminate/contracts

The Illuminate Contracts package.

706130.3M13.4k](/packages/illuminate-contracts)[illuminate/container

The Illuminate Container package.

31182.0M2.4k](/packages/illuminate-container)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

564576.7k53](/packages/ecotone-ecotone)[symfony/type-info

Extracts PHP types information.

20069.8M270](/packages/symfony-type-info)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)

PHPackages © 2026

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