PHPackages                             clearswitch/doraemon-ioc - 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. clearswitch/doraemon-ioc

ActiveLibrary[Framework](/categories/framework)

clearswitch/doraemon-ioc
========================

dependency injection(依赖注入) ioc

0.0.1(3y ago)0601MITPHP

Since Mar 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/ClearSwicth/Doraemon-Ioc)[ Packagist](https://packagist.org/packages/clearswitch/doraemon-ioc)[ RSS](/packages/clearswitch-doraemon-ioc/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (1)

DoraemonIoc
===========

[](#doraemonioc)

dependency injection(依赖注入)

[![image](https://github.com/ClearSwicth/icon/raw/master/img/doraemon.jpeg?raw=true)](https://github.com/ClearSwicth/icon/blob/master/img/doraemon.jpeg?raw=true)

```
use Clearswitch\DoraemonIoc\Container;
/**
 * 注册服务
 * @param1:给绑定服务起的别名
 * @param2:具体类的路径，也可以是回掉函数
 */

 Container::bind("test","test.php");

 /**
 * 使用
 */

 Container::make("test");

 /**
 * 当然你也可以直接绑定和是使用放在一起
 */

 Container::make("test",'test,php');
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity35

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

1207d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/47359?v=4)[The Apache Software Foundation](/maintainers/Apache)[@apache](https://github.com/apache)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/clearswitch-doraemon-ioc/health.svg)

```
[![Health](https://phpackages.com/badges/clearswitch-doraemon-ioc/health.svg)](https://phpackages.com/packages/clearswitch-doraemon-ioc)
```

###  Alternatives

[laravel/dusk

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

1.9k39.6M300](/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)
