PHPackages                             iflow/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. iflow/container

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

iflow/container
===============

iflow\_container

v0.0.1(1y ago)0451MulanPSL-2.0PHPPHP &gt;=8.1

Since Dec 9Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/luotianyil/iflow_container)[ Packagist](https://packagist.org/packages/iflow/container)[ RSS](/packages/iflow-container/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (1)

[![Php Version](https://camo.githubusercontent.com/9440fe5b4ff37fd96736444de00229ca588916991580cc6088388dd46c8b72f6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d382e312d627269676874677265656e2e737667)](https://secure.php.net/)

iflow container
===============

[](#iflow-container)

遵循 PSR-11 规范的容器组件

安装
==

[](#安装)

```
composer require iflow/container
```

使用
==

[](#使用)

```
use iflow\Container\Container;

$container = Container::getInstance();

// 新建对象
$container -> make('class', $args, call: function ($object) { return $object });

// 将已实例化的对象写入容器
$container -> register('class', $obj);

// 获取容器对象
$container -> get('class');

// 验证当前容器是否存在改对象
$container -> has('class');

// 删除容器内对象
$container -> delete('class');
```

功能
==

[](#功能)

- 容器 (PSR-11)
- 自定义注解模块

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance50

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 54.5% 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

524d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5d25b62271bcaef304dce7dcb02951de015980b87e5129f440b8d11758d4e86b?d=identicon)[洛水天依](/maintainers/%E6%B4%9B%E6%B0%B4%E5%A4%A9%E4%BE%9D)

---

Top Contributors

[![luotianyiovo](https://avatars.githubusercontent.com/u/22890200?v=4)](https://github.com/luotianyiovo "luotianyiovo (12 commits)")[![luotianyil](https://avatars.githubusercontent.com/u/43297170?v=4)](https://github.com/luotianyil "luotianyil (10 commits)")

### Embed Badge

![Health badge](/badges/iflow-container/health.svg)

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

###  Alternatives

[symfony/dependency-injection

Allows you to standardize and centralize the way objects are constructed in your application

4.2k431.1M7.5k](/packages/symfony-dependency-injection)[illuminate/contracts

The Illuminate Contracts package.

704122.9M10.1k](/packages/illuminate-contracts)[illuminate/container

The Illuminate Container package.

31278.1M2.0k](/packages/illuminate-container)[ecotone/ecotone

Supporting you in building DDD, CQRS, Event Sourcing applications with ease.

558549.8k17](/packages/ecotone-ecotone)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k20](/packages/civicrm-civicrm-core)[internal/dload

Downloads binaries.

98142.7k10](/packages/internal-dload)

PHPackages © 2026

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