PHPackages                             miniature/di\_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. [Framework](/categories/framework)
4. /
5. miniature/di\_container

ActiveLibrary[Framework](/categories/framework)

miniature/di\_container
=======================

A simple implementation of a dependency injection container for PHP-classes and parameters (array, string, numeric). It is consuming array data.

0.1.2(4y ago)0121MITPHPPHP &gt;=7.4

Since May 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/guidoerfen/miniature-di_container)[ Packagist](https://packagist.org/packages/miniature/di_container)[ RSS](/packages/miniature-di-container/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (3)DependenciesVersions (5)Used By (1)

[![](https://github.com/guidoerfen/miniature-component/raw/master/img/miniature-logo-100px.png)](https://github.com/guidoerfen/miniature-component/blob/master/img/miniature-logo-100px.png)

DiContainer
===========

[](#dicontainer)

### Warning!

[](#warning)

This is still on an experimental level. We don't know if we've got everything together currently. Extensive testing needs to be done as well.

Purpose
=======

[](#purpose)

This package provides a simple dependecy injection container. It runs on the basis of injected data (PHP-array). The syntax that is used for interpreting the wiring can be manipulated by the injection of the instance of a syntax class.

Installation
============

[](#installation)

### Using Composer

[](#using-composer)

```
composer require miniature/di_container
```

### Downloading Package

[](#downloading-package)

Unzip to a directory named **`Miniature`**. Add to your autoload something like the following:

```
