PHPackages                             ellipse/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. ellipse/container

Abandoned → [quanta/container](/?search=quanta%2Fcontainer)Library[PSR &amp; Standards](/categories/psr-standards)

ellipse/container
=================

Minimal Psr-11 container implementation handling service provider interop

0.4.10(8y ago)14513MITPHPPHP &gt;=7.0

Since Oct 18Pushed 8y ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (12)Used By (3)

Container
=========

[](#container)

Minimal [Psr-11](http://www.php-fig.org/psr/psr-11/) container implementation handling [service provider interop](https://github.com/container-interop/service-provider).

**Require** php &gt;= 7.0

**Installation** `composer require ellipse/container`

**Run tests** `./vendor/bin/kahlan`

- [Getting started](#getting-started)

Getting started
---------------

[](#getting-started)

The `Ellipse\Container` class constructor takes an array of `Interop\Container\ServiceProviderInterface` implementations. This is the only way of registering service providers and service definitions into the container.

An `Ellipse\Container\Exceptions\ServiceProviderTypeException` is thrown when any element of the array passed to the `Container` class constructor is not an implementation of `ServiceProviderInterface`.

```
