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 2w 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 52% 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

3039d 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://avatars.githubusercontent.com/u/13558383?v=4)[Ruslan](/maintainers/maestroprog)[@maestroprog](https://github.com/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.2k455.6M9.2k](/packages/symfony-dependency-injection)[symfony/service-contracts

Generic abstractions related to writing services

2.6k914.7M564](/packages/symfony-service-contracts)[illuminate/contracts

The Illuminate Contracts package.

706130.3M12.8k](/packages/illuminate-contracts)[illuminate/container

The Illuminate Container package.

31180.7M2.3k](/packages/illuminate-container)[symfony/type-info

Extracts PHP types information.

20062.9M249](/packages/symfony-type-info)[ecotone/ecotone

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

562565.8k44](/packages/ecotone-ecotone)

PHPackages © 2026

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