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

ActiveLibrary

grendizer/container
===================

一个简单但功能强大的自动注入依赖的服务容器

0191PHP

Since Apr 4Pushed 10y ago1 watchersCompare

[ Source](https://github.com/grendizerio/container)[ Packagist](https://packagist.org/packages/grendizer/container)[ RSS](/packages/grendizer-container/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Container (Dependency Injection)
================================

[](#container-dependency-injection)

This package is compliant with PSR-1, PSR-2 and PSR-4. If you notice compliance oversights, please send a patch via pull request.

What is Container?
------------------

[](#what-is-container)

Container is a small but powerful dependency injection container that allows you to decouple components in your application in order to write clean and testable code.

Install
-------

[](#install)

Via Composer

```
$ composer require grendizer/container

```

Requirements
------------

[](#requirements)

The following versions of PHP are supported by this version.

- PHP 5.3
- PHP 5.4
- PHP 5.5
- PHP 5.6
- PHP 7.0
- HHVM

Questions?
----------

[](#questions)

Container was created by Maofeng Zhang. Find him on Email at grendizer@163.com.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2b73e95f08333749f5f903bddc7a48235fee95a25e66ff02f8d495dc5392e787?d=identicon)[grendizer](/maintainers/grendizer)

---

Top Contributors

[![grendizerio](https://avatars.githubusercontent.com/u/18187164?v=4)](https://github.com/grendizerio "grendizerio (3 commits)")

### Embed Badge

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

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

PHPackages © 2026

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