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

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

thruster/container
==================

Thruster Container Component

1.1.0(9y ago)0346MITPHPPHP &gt;=7.0

Since May 9Pushed 9y ago1 watchersCompare

[ Source](https://github.com/ThrusterIO/container)[ Packagist](https://packagist.org/packages/thruster/container)[ Docs](https://thruster.io)[ RSS](/packages/thruster-container/feed)WikiDiscussions master Synced 1mo ago

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

Container Component
===================

[](#container-component)

\[[![Latest Version](https://camo.githubusercontent.com/5501db488ba460e18046e536816a2bb805d16e8fc814cc7873b742dba347c381/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f5468727573746572494f2f636f6e7461696e65722e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/5501db488ba460e18046e536816a2bb805d16e8fc814cc7873b742dba347c381/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f5468727573746572494f2f636f6e7461696e65722e7376673f7374796c653d666c61742d737175617265)\] () \[[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)\] (LICENSE) \[[![Build Status](https://camo.githubusercontent.com/2151fcc66f832c7801be353c86982090383a96bd1b7110d619658eadfc83ad5e/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f5468727573746572494f2f636f6e7461696e65722e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/2151fcc66f832c7801be353c86982090383a96bd1b7110d619658eadfc83ad5e/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f5468727573746572494f2f636f6e7461696e65722e7376673f7374796c653d666c61742d737175617265)\] () \[[![Code Coverage](https://camo.githubusercontent.com/dbf03e3135035b2ae047b5dc644e15a3844fd0a2f0dac8128733862a45d1b4c4/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f5468727573746572494f2f636f6e7461696e65722e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/dbf03e3135035b2ae047b5dc644e15a3844fd0a2f0dac8128733862a45d1b4c4/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f5468727573746572494f2f636f6e7461696e65722e7376673f7374796c653d666c61742d737175617265)\] () \[[![Quality Score](https://camo.githubusercontent.com/a6106c68d0471ad6952e0f2f8d397eb0355681b26f12716064d032af00fe46ad/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f5468727573746572494f2f636f6e7461696e65722e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/a6106c68d0471ad6952e0f2f8d397eb0355681b26f12716064d032af00fe46ad/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f5468727573746572494f2f636f6e7461696e65722e7376673f7374796c653d666c61742d737175617265)\] () \[[![Total Downloads](https://camo.githubusercontent.com/14a62195ba75daccec12f7528a45b60ba87babd016ec88a980f7077c83be6ad8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74687275737465722f636f6e7461696e65722e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/14a62195ba75daccec12f7528a45b60ba87babd016ec88a980f7077c83be6ad8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f74687275737465722f636f6e7461696e65722e7376673f7374796c653d666c61742d737175617265)\] ()

\[[![Email](https://camo.githubusercontent.com/fc4998410b6b71d697bf556c37294970fedc130c081c82698cdb5ca22d70cade/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f656d61696c2d7465616d4074687275737465722e696f2d626c75652e7376673f7374796c653d666c61742d737175617265)](https://camo.githubusercontent.com/fc4998410b6b71d697bf556c37294970fedc130c081c82698cdb5ca22d70cade/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f656d61696c2d7465616d4074687275737465722e696f2d626c75652e7376673f7374796c653d666c61742d737175617265)\] ()

The Thruster Container Component. Container is small self contained dependency injection container implementing `ContainerInterface` interface.

Install
-------

[](#install)

Via Composer

```
$ composer require thruster/container
```

Usage
-----

[](#usage)

Just create instance of Container:

```
