PHPackages                             koind/dic - 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. [Framework](/categories/framework)
4. /
5. koind/dic

ActiveProject[Framework](/categories/framework)

koind/dic
=========

A very simple and convenient lib for working with Dependency Injection Container for PHP.

1.0(7y ago)06MITPHPPHP ^7.2

Since Jul 21Pushed 7y agoCompare

[ Source](https://github.com/koind/dic)[ Packagist](https://packagist.org/packages/koind/dic)[ RSS](/packages/koind-dic/feed)WikiDiscussions master Synced 3d ago

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

DIC - Dependency Injection Container
====================================

[](#dic---dependency-injection-container)

A very simple and convenient lib for working with Dependency Injection Container for PHP

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

[](#installation)

Run the following command from you terminal:

```
composer require "koind/dic: ^1.0"
```

or add this to require section in your composer.json file:

```
"koind/dic": "^1.0"

```

then run `composer update`

Usage
-----

[](#usage)

As an example, we will use the library `multi-basket`, to start we install it:

```
composer require "koind/multi-basket: ^1.0"

```

Now the implementation itself:

```
