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

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

ozziest/di
==========

DI is a simple dependency injection manager.

1.0.1(10y ago)326MITPHP

Since May 27Pushed 10y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (3)Used By (0)

Dependency Injection Resolver
-----------------------------

[](#dependency-injection-resolver)

[![Build Status](https://camo.githubusercontent.com/a53b8e81c8467cb2ffffdee52795213a2e413d0f292dc17f5c92778e1a5ca28c/68747470733a2f2f7472617669732d63692e6f72672f6f7a7a696573742f64692e737667)](https://travis-ci.org/ozziest/di)[![Total Downloads](https://camo.githubusercontent.com/a7d38d8d4981ebee5b68ed155979a99cd0011d307896b3ad6d759811f941c518/68747470733a2f2f706f7365722e707567782e6f72672f6f7a7a696573742f64692f642f746f74616c2e737667)](https://packagist.org/packages/ozziest/di)[![Latest Stable Version](https://camo.githubusercontent.com/749565a858fd5a89286406056627c56535221f6472513ebbb0db33bbc2f27125/68747470733a2f2f706f7365722e707567782e6f72672f6f7a7a696573742f64692f762f737461626c652e737667)](https://packagist.org/packages/ozziest/di)[![Latest Unstable Version](https://camo.githubusercontent.com/bf4a802a181c905e96c14c446d0970b4a3b4753480d67d44edde4241b66bfa54/68747470733a2f2f706f7365722e707567782e6f72672f6f7a7a696573742f64692f762f756e737461626c652e737667)](https://packagist.org/packages/ozziest/di)[![License](https://camo.githubusercontent.com/4ca0d66e0b3d5a15b74c4b00c332bd466fc61417856ee3c2c577a05d87ef4e6a/68747470733a2f2f706f7365722e707567782e6f72672f6f7a7a696573742f64692f6c6963656e73652e737667)](https://packagist.org/packages/ozziest/di)

This is a simple dependency injection manager.

### Installation

[](#installation)

To install through composer, simply put the following in your `composer.json` file:

```
{
    "require": {
        "ozziest/di": "dev-master"
    }
}
```

```
$ composer update

```

### Usage

[](#usage)

```
class CustomModel {

    public function __construct(IDB $db)
    {

    }

}

class MyController {

    public function __construct(IModel $model, IRepository $repository, CustomModel $model)
    {

    }

}

Ozziest\DI::bind('IModel', 'MyModel');
Ozziest\DI::bind('IRepository', 'MyRepository');
Ozziest\DI::bind('IDB', 'MyDB');

$instance = Ozziest\DI::resolve('MyController');

// equals this
$instance = new MyController(
    new MyModel(),
    new MyRepository(),
    new CustomModel(new MyDB())
);
```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Total

2

Last Release

3683d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2facdc256fbb7fd57510c101c009d6adb6f5cdf07ec7c5a304d30520e78c1357?d=identicon)[ozziest](/maintainers/ozziest)

---

Top Contributors

[![ozziest](https://avatars.githubusercontent.com/u/2325140?v=4)](https://github.com/ozziest "ozziest (10 commits)")

---

Tags

phpdependency-injectionmanager

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[rumenx/php-assets

Framework-agnostic PHP package to manage frontend assets in the backend. Works with plain PHP, Laravel, Symfony, and any PHP framework.

1043.3k](/packages/rumenx-php-assets)[php-lrpm/php-lrpm

PHP Long Running Process Manager

188.7k1](/packages/php-lrpm-php-lrpm)[claudiodekker/changelog-updater

A PHP package to programmatically update your changelog file.

1315.6k](/packages/claudiodekker-changelog-updater)[michaels/data-manager

Simple data manager for nested data, dot notation array access, extendability, and container interoperability.

121.9k2](/packages/michaels-data-manager)

PHPackages © 2026

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