PHPackages                             moro/container7 - 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. moro/container7

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

moro/container7
===============

Dependency Injection container for PHP-7

1.4.0(8y ago)0151MITPHP

Since Apr 13Pushed 8y ago1 watchersCompare

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

READMEChangelog (3)Dependencies (6)Versions (5)Used By (1)

Container7
==========

[](#container7)

[![Latest Version 1.4](https://camo.githubusercontent.com/06b5229a27244d514ad5f6500d14f4821562c9dba9174a98e7f65565feeb8965/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f4d6f726f343132352f636f6e7461696e6572372e7376673f7374796c653d666c61742d737175617265)](https://github.com/Moro4125/container7/releases)[![Build Status](https://camo.githubusercontent.com/1829ac10890b718aa3e69c00fb4dacd19ce111628186f7a1752b156277932edb/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4d6f726f343132352f636f6e7461696e6572372e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Moro4125/container7)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Container7 is a medium Dependency Injection Container for PHP-7.

This package is compliant with [PSR-1](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-1-basic-coding-standard.md), [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md), [PSR-4](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md) and [PSR-11](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-11-container.md). If you notice compliance oversights, please send a patch via pull request.

Features: providers, singletons, factories, parameters, aliases, tags, configuration, serialization.

Install
-------

[](#install)

Via composer

```
$ composer require moro/container7

```

### Requirements

[](#requirements)

- PHP 7.1

Usage
-----

[](#usage)

Creating a container is a matter of creating a Container instance:

```
