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

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

maestroprog/di-container
========================

A simple realisation of dependency injection container.

v1.2(8y ago)094[3 issues](https://github.com/maestroprog/di-container/issues)1MITPHPPHP &gt;=7.0.0

Since Aug 12Pushed 8y ago1 watchersCompare

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

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

Simple Di-Container for PHP
===========================

[](#simple-di-container-for-php)

[![Build Status](https://camo.githubusercontent.com/d20a6b9bde0e9387da623c8b5404e66cedebbfd1b8a6fb6d092284836f442fa2/68747470733a2f2f7472617669732d63692e6f72672f6d61657374726f70726f672f64692d636f6e7461696e65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/maestroprog/di-container)[![Coverage Status](https://camo.githubusercontent.com/0321d85cde837e84b9f6fb1048cb96a7c4f824ad6b76423ae0243584fc4c14bc/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6d61657374726f70726f672f64692d636f6e7461696e65722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/maestroprog/di-container?branch=master)[![Code Climate](https://camo.githubusercontent.com/046cd8d3acb34a74b7b0bc263cfc1c40a28a953839d5b69395c80393cebb951e/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6d61657374726f70726f672f64692d636f6e7461696e65722f6261646765732f6770612e737667)](https://codeclimate.com/github/maestroprog/di-container)[![Test Coverage](https://camo.githubusercontent.com/8c6623f12df09efcd6c63f5b00ab561106cd106fe7aae47042532247d42a58c0/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6d61657374726f70726f672f64692d636f6e7461696e65722f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/maestroprog/di-container/coverage)[![Issue Count](https://camo.githubusercontent.com/cc1c065357ea1bb67b818b15e69f46c33bad3384613cefa39249c49343313400/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6d61657374726f70726f672f64692d636f6e7461696e65722f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/maestroprog/di-container)

A simple realisation of dependency injection container.

Requirements
------------

[](#requirements)

- &gt;=PHP7.1

Installing
----------

[](#installing)

- With composer:

`$ composer require maestroprog/di-container`

- With git clone:

`$ git clone https://github.com/maestroprog/di-container`

Using
-----

[](#using)

See [sample](sample/index.php).

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

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

Total

4

Last Release

2992d ago

Major Versions

v1.2 → 2.0-RC2018-03-05

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

2.0-RCPHP &gt;=7.1.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6b52ba37ae503156baeec8ceb3ffdd423bdaa139e0ca347da7b0f1c2caacce51?d=identicon)[maestroprog](/maintainers/maestroprog)

---

Top Contributors

[![maestroprog](https://avatars.githubusercontent.com/u/13558383?v=4)](https://github.com/maestroprog "maestroprog (19 commits)")

---

Tags

di-container

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[symfony/dependency-injection

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

4.2k431.1M7.5k](/packages/symfony-dependency-injection)[illuminate/contracts

The Illuminate Contracts package.

704122.9M10.1k](/packages/illuminate-contracts)[illuminate/container

The Illuminate Container package.

31278.1M2.0k](/packages/illuminate-container)[ecotone/ecotone

Supporting you in building DDD, CQRS, Event Sourcing applications with ease.

558549.8k17](/packages/ecotone-ecotone)[civicrm/civicrm-core

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

728272.9k20](/packages/civicrm-civicrm-core)[internal/dload

Downloads binaries.

98142.7k10](/packages/internal-dload)

PHPackages © 2026

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