PHPackages                             irfantoor/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. [API Development](/categories/api)
4. /
5. irfantoor/container

ActiveLibrary[API Development](/categories/api)

irfantoor/container
===================

Irfan's Container: An abstraction for many types of containers with a single API.

1.3.1(3y ago)02341MITPHP

Since May 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/irfantoor/container)[ Packagist](https://packagist.org/packages/irfantoor/container)[ RSS](/packages/irfantoor-container/feed)WikiDiscussions main Synced 2w ago

READMEChangelog (1)Dependencies (5)Versions (24)Used By (1)

IrfanTOOR\\Container
====================

[](#irfantoorcontainer)

Note: this Readme will be updated shortly, it reflects the functionality of v1.0.4

Container
=========

[](#container)

Container implementing Psr\\ContainerInterface, ArrayAccess, Countable and IteratorAggregate.

The identifiers can use dot notation to access an identifier down a hierarchical level, e.g. to access `$container['environment']['headers']['host']` you can code in doted notation as: `$config['environment.headers.host']`

Initializing
------------

[](#initializing)

You can initialize by passing an array of key value pairs while creating a new instance, it will use array in memory for this case.

```
