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

ActiveLibrary[Framework](/categories/framework)

jiawei666/my-di
===============

The Better PHP DI Container

v0.0.1(5y ago)111MITPHPPHP &gt;=7.0

Since Jan 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/jiawei666/my-di)[ Packagist](https://packagist.org/packages/jiawei666/my-di)[ RSS](/packages/jiawei666-my-di/feed)WikiDiscussions main Synced today

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

### My-DI

[](#my-di)

[![](https://camo.githubusercontent.com/593877325cb9bd890d0b1ee9ad47d563747e4ae9accef02da05086a26befa375/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c642d70617373696e672d677265656e)](https://camo.githubusercontent.com/593877325cb9bd890d0b1ee9ad47d563747e4ae9accef02da05086a26befa375/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275696c642d70617373696e672d677265656e)

### Introduce

[](#introduce)

The Better `PHP` DI Container

### Install

[](#install)

```
composer require jiawei666/my-di
```

### Get Started

[](#get-started)

```
$container = new MyDI\Container(YourClass::class);  // Init container
$Object    = $container->get(); // Get object
// ...

// See unit test Amway for more usage
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 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

Unknown

Total

1

Last Release

1952d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24775116?v=4)[beConfident](/maintainers/jiawei666)[@jiawei666](https://github.com/jiawei666)

---

Top Contributors

[![jiawei666](https://avatars.githubusercontent.com/u/24775116?v=4)](https://github.com/jiawei666 "jiawei666 (7 commits)")

---

Tags

diphp-di

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[nette/di

💎 Nette Dependency Injection Container: Flexible, compiled and full-featured DIC with perfectly usable autowiring and support for all new PHP features.

92140.6M1.4k](/packages/nette-di)[ray/di

Guice style dependency injection framework

1992.0M67](/packages/ray-di)[yiisoft/di

Yii DI container

2351.2M100](/packages/yiisoft-di)[bear/sunday

A resource-oriented application framework

247584.6k21](/packages/bear-sunday)[yiisoft/injector

PSR-11 compatible injector. Executes a callable and makes an instances by injecting dependencies from a given DI container.

942.8M38](/packages/yiisoft-injector)[kdyby/autowired

Syntax sugar for working with services in Nette Framework

30885.7k9](/packages/kdyby-autowired)

PHPackages © 2026

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