PHPackages                             mix/bean - 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. mix/bean

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

mix/bean
========

DI, IoC container, reference spring bean

v2.2.19(4y ago)04.0k12Apache-2.0PHPPHP &gt;=7.0.0

Since Jul 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/mix-php/bean)[ Packagist](https://packagist.org/packages/mix/bean)[ Docs](https://openmix.org/)[ RSS](/packages/mix-bean/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (22)Used By (12)

Mix Bean
--------

[](#mix-bean)

DI、IoC 容器，参考 spring bean 设计

DI, IoC container, reference spring bean

> 该库还有 go 版本：

Usage
-----

[](#usage)

安装：

```
composer require mix/bean

```

文档：

-

License
-------

[](#license)

Apache License Version 2.0,

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity63

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

Recently: every ~98 days

Total

21

Last Release

1707d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16074765?v=4)[LIU JIAN](/maintainers/onanying)[@onanying](https://github.com/onanying)

---

Top Contributors

[![onanying](https://avatars.githubusercontent.com/u/16074765?v=4)](https://github.com/onanying "onanying (24 commits)")

---

Tags

beandiiocmixdiicomixbean

### Embed Badge

![Health badge](/badges/mix-bean/health.svg)

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

###  Alternatives

[level-2/dice

A minimalist Dependency injection container (DIC) for PHP. Please note: 3.0+ is only compatible with PHP 7.0. The 2.0 branch is compatbile with PHP 5.6.

437730.3k17](/packages/level-2-dice)[hyperf/di

A DI for Hyperf.

182.8M594](/packages/hyperf-di)[marcelog/ding

PHP Dependency Injection based on Spring(tm), with Aspect Oriented Programming, MVC

1202.1k](/packages/marcelog-ding)[misterbk/mix

Helper plugin for Laravel Mix in Craft CMS templates

51172.4k4](/packages/misterbk-mix)[x-wp/di

The dependency injection container for WordPress

301.1k10](/packages/x-wp-di)

PHPackages © 2026

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