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 2w 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 69% 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

1754d 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

[symfony/dependency-injection

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

4.2k447.1M9.1k](/packages/symfony-dependency-injection)[illuminate/contracts

The Illuminate Contracts package.

706127.7M12.7k](/packages/illuminate-contracts)[illuminate/container

The Illuminate Container package.

31180.7M2.3k](/packages/illuminate-container)[symfony/type-info

Extracts PHP types information.

20062.9M225](/packages/symfony-type-info)[ecotone/ecotone

Enterprise architecture layer for Laravel and Symfony — CQRS, Event Sourcing, Durable Workflows (Sagas, Orchestrators), Projections, and Outbox messaging via PHP attributes.

562565.8k42](/packages/ecotone-ecotone)[civicrm/civicrm-core

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

751284.3k37](/packages/civicrm-civicrm-core)

PHPackages © 2026

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