PHPackages                             guanguans/di - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. guanguans/di

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

guanguans/di
============

A flexible dependency injection container based on the modification of `illuminate/container`. - 一个灵活的基于 `illuminate/container` 修改的依赖注入容器。

v1.0.2(5y ago)51.2k1MITPHPPHP &gt;=5.6.4

Since Oct 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/guanguans/di)[ Packagist](https://packagist.org/packages/guanguans/di)[ Docs](https://github.com/guanguans/di)[ Fund](https://www.guanguans.cn/images/wechat.jpeg)[ RSS](/packages/guanguans-di/feed)WikiDiscussions main Synced 5d ago

READMEChangelogDependencies (6)Versions (5)Used By (1)

di
==

[](#di)

> A flexible dependency injection container based on the modification of `illuminate/container`. - 一个灵活的基于 `illuminate/container` 修改的依赖注入容器。

[![Tests](https://github.com/guanguans/di/workflows/Tests/badge.svg)](https://github.com/guanguans/di/workflows/Tests/badge.svg)[![Check & fix styling](https://github.com/guanguans/di/workflows/Check%20&%20fix%20styling/badge.svg)](https://github.com/guanguans/di/workflows/Check%20&%20fix%20styling/badge.svg)[![codecov](https://camo.githubusercontent.com/1d84446b3d30a8dc848bf3aff44adc1c2c62e37a6fd01d6e5a50b9b6a77892c7/68747470733a2f2f636f6465636f762e696f2f67682f6775616e6775616e732f64692f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/guanguans/di)[![Latest Stable Version](https://camo.githubusercontent.com/c4f6fc41ee3ef924bbe3dae44ddeb2a252e86bca5c87db4c286c30eef2bed84c/68747470733a2f2f706f7365722e707567782e6f72672f6775616e6775616e732f64692f76)](//packagist.org/packages/guanguans/di)[![Total Downloads](https://camo.githubusercontent.com/51e9a8173804b386a2f6d1086fd35881ae3318ab39c6ed3268e9495b183b13b8/68747470733a2f2f706f7365722e707567782e6f72672f6775616e6775616e732f64692f646f776e6c6f616473)](//packagist.org/packages/guanguans/di)[![License](https://camo.githubusercontent.com/997b9e24fa0ce0dc7c27a495c3f9bc7cfaff072333563bd9496db1347ad98056/68747470733a2f2f706f7365722e707567782e6f72672f6775616e6775616e732f64692f6c6963656e7365)](//packagist.org/packages/guanguans/di)

Requirement
-----------

[](#requirement)

- PHP &gt;= 5.6

Installation
------------

[](#installation)

```
$ composer require guanguans/di -vvv
```

Usage
-----

[](#usage)

```
