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

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

igniphp/container
=================

PSR-11 compatible dependency container

1.1.0(8y ago)41.4k↑900%2MITPHPPHP ^7.1.0

Since Mar 1Pushed 8y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (3)Versions (3)Used By (2)

[![Igni logo](https://github.com/igniphp/common/raw/master/logo/full.svg)](https://github.com/igniphp/common/blob/master/logo/full.svg) [![Build Status](https://camo.githubusercontent.com/dfe2b07572a815cfd34272592706796115032a0589d9c0afe646e2b76810e68f/68747470733a2f2f7472617669732d63692e6f72672f69676e697068702f636f6e7461696e65722e7376673f6272616e63683d6d6173746572)](https://camo.githubusercontent.com/dfe2b07572a815cfd34272592706796115032a0589d9c0afe646e2b76810e68f/68747470733a2f2f7472617669732d63692e6f72672f69676e697068702f636f6e7461696e65722e7376673f6272616e63683d6d6173746572)
=========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#-)

Igni Container
--------------

[](#igni-container)

Licensed under MIT License.

**Igni** container is a `psr-container` compliant lightweight service locator pattern implementation.

List of features:
-----------------

[](#list-of-features)

- **Simple usage** if you are familiar with `psr-container` there is no learning-curve required for basic usage
- **Context aware** you can define custom instances of services for given use-cases.
- **Auto wiring** required dependencies are auto-injected into your service

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

[](#installation)

```
composer install igniphp/container

```

### Basic usage

[](#basic-usage)

```
