PHPackages                             cti/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. [Framework](/categories/framework)
4. /
5. cti/di

Abandoned → [league/container](/?search=league%2Fcontainer)Library[Framework](/categories/framework)

cti/di
======

Dependency Injection Container

2.8.1(11y ago)151.4k12MITPHP

Since Mar 31Pushed 10y ago5 watchersCompare

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

READMEChangelog (10)Dependencies (2)Versions (39)Used By (2)

Dependency Manager
==================

[](#dependency-manager)

This project is not supported any more. You can replace it with [league container](http://container.thephpleague.com)

[![Latest Stable Version](https://camo.githubusercontent.com/866e7c4e7b828a27ee73a9d6b774139b6e7a18cce2e345fde10be0e201f6c5e0/68747470733a2f2f706f7365722e707567782e6f72672f6374692f64692f762f737461626c652e706e67)](https://packagist.org/packages/cti/di)[![Total Downloads](https://camo.githubusercontent.com/184f82f2ef382ea7f392e6f7ca71226b9e6c5995d3fb91bf89df2bcd8ea23bd1/68747470733a2f2f706f7365722e707567782e6f72672f6374692f64692f646f776e6c6f6164732e706e67)](https://packagist.org/packages/cti/di)[![License](https://camo.githubusercontent.com/bbd7473d33b4177abb8a246eeebc38aea09a2c114b9d8365dabe425b8536b9a8/68747470733a2f2f706f7365722e707567782e6f72672f6374692f64692f6c6963656e73652e706e67)](https://packagist.org/packages/cti/di)[![Build Status](https://camo.githubusercontent.com/88b8838bb60b866775c480f5545fc83046deb00cc9ce96ef1a9a914a49f68d41/68747470733a2f2f7472617669732d63692e6f72672f6374692f64692e737667)](https://travis-ci.org/cti/di)[![Coverage Status](https://camo.githubusercontent.com/6f7458f72a4d883551bc2e28b9933aab5048f4961212a5ffe14bf69807b4f218/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6374692f64692f62616467652e706e67)](https://coveralls.io/r/cti/di)

This component implements dependency injection pattern.
Manager can inject properties, configure objects and resolve depenencies while calling methods.

Installation
============

[](#installation)

Using composer.

```
{
    "require": {
        "cti/di": "*"
    }
}
```

Documentation
=============

[](#documentation)

- [Manager](https://github.com/cti/di/blob/master/docs/manager.md)
- [Configuration](https://github.com/cti/di/blob/master/docs/configuration.md)
- [Initialize](https://github.com/cti/di/blob/master/docs/intialize.md)
- [Caching](https://github.com/cti/di/blob/master/docs/caching.md)
- [Locator](https://github.com/cti/di/blob/master/docs/locator.md)
- [Callback](https://github.com/cti/di/blob/master/docs/callback.md)

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity75

Established project with proven stability

 Bus Factor1

Top contributor holds 97.8% 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 ~3 days

Recently: every ~17 days

Total

37

Last Release

4369d ago

Major Versions

1.2.2 → 2.0.02014-04-09

### Community

Maintainers

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

---

Top Contributors

[![nekufa](https://avatars.githubusercontent.com/u/405067?v=4)](https://github.com/nekufa "nekufa (89 commits)")[![nikitakuhta](https://avatars.githubusercontent.com/u/908701?v=4)](https://github.com/nikitakuhta "nikitakuhta (1 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M294](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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