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

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

oukhennicheabdelkrim/dic
========================

DIC is dependency-injection container allows developers to move object creation logic out of their application logic.

V1.3.0(6y ago)313MITPHPPHP &gt;=7.0.0

Since May 25Pushed 6y ago1 watchersCompare

[ Source](https://github.com/oukhennicheabdelkrim/dic)[ Packagist](https://packagist.org/packages/oukhennicheabdelkrim/dic)[ RSS](/packages/oukhennicheabdelkrim-dic/feed)WikiDiscussions master Synced today

READMEChangelog (7)Dependencies (2)Versions (9)Used By (0)

***﻿DiC***
==========

[](#dic)

DIC is a simple **dependency-injection container** for **php**, allows developers to move object-creation logic out of their application logic.

[![Build Status](https://camo.githubusercontent.com/5db52959c473524f1fde30a8d29dad65d38ea459c4c4fd9b9c499ba4f9f00f62/68747470733a2f2f7472617669732d63692e6f72672f6f756b68656e6e69636865616264656c6b72696d2f6469632e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/oukhennicheabdelkrim/dic)[![Latest Stable Version](https://camo.githubusercontent.com/8bc614031d8daeed328c4ed098ee411eb669987eada5bd5c291c061d0ad5996c/68747470733a2f2f706f7365722e707567782e6f72672f6f756b68656e6e69636865616264656c6b72696d2f6469632f762f737461626c65)](https://packagist.org/packages/oukhennicheabdelkrim/dic)[![License](https://camo.githubusercontent.com/bd9f8ee43101ed032d5ed0acf9d165c6ca28c8dc860775d69ef6dd4515cb9c75/68747470733a2f2f706f7365722e707567782e6f72672f6f756b68656e6e69636865616264656c6b72696d2f6469632f6c6963656e7365)](https://packagist.org/packages/oukhennicheabdelkrim/dic)

This package is compatible with [PSR-1](https://www.php-fig.org/psr/psr-1), [PSR-4](https://www.php-fig.org/psr/psr-4) and [PSR-11](https://www.php-fig.org/psr/psr-11), if you notice compliance oversights, please send me a patch via pull request.

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

[](#requirements)

The following versions of PHP are supported in this version:

- PHP 7.0
- PHP 7.1
- PHP 7.2

Testing
-------

[](#testing)

```
$ vendor/bin/phpunit

```

Get started
-----------

[](#get-started)

### Install the package via composer:

[](#install-the-package-via-composer)

```
composer require oukhennicheabdelkrim/dic

```

### Simple usage

[](#simple-usage)

To create a container, simply create an instance of the `DIC` class.

```
