# Container (Dependency Injection) [![Author](https://img.shields.io/badge/author-Phil%20Bennett-blue?style=flat-square)](https://github.com/philipobenito) [![Latest Version](https://img.shields.io/github/release/thephpleague/container.svg?style=flat-square)](https://github.com/thephpleague/container/releases) [![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE.md) [![GitHub Actions Workflow Status](https://img.shields.io/github/actions/workflow/status/thephpleague/container/test.yml?style=flat-square)](https://github.com/thephpleague/container/actions/workflows/test.yml) [![Total Downloads](https://img.shields.io/packagist/dt/league/container.svg?style=flat-square)](https://packagist.org/packages/league/container) This package is compliant with [PER-CS], [PSR-4] and [PSR-11]. If you notice compliance oversights, please send a patch via pull request. [PER-CS]: https://www.php-fig.org/per/coding-style/ [PSR-4]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-4-autoloader.md [PSR-11]: https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-11-container.md ## Install Via Composer ``` bash composer require league/container ``` ## Requirements This version supports the following versions of PHP. * PHP 8.3 * PHP 8.4 * PHP 8.5 ## Documentation Container has [full documentation](http://container.thephpleague.com), powered by [Jekyll](http://jekyllrb.com/). Contribute to this documentation in the [docs/](https://github.com/thephpleague/container/tree/master/docs) subdirectory. ## Testing Testing includes Pest and PHPStan (Level 8). ``` bash $ composer test ``` ## Contributing Please see [CONTRIBUTING](https://github.com/thephpleague/container/blob/master/CONTRIBUTING.md) for details. ## Security If you discover any security-related issues, please email philipobenito@gmail.com instead of using the issue tracker. ## Credits - [Phil Bennett](https://github.com/philipobenito) - [All Contributors](https://github.com/thephpleague/container/contributors) - `Orno\Di` contributors ## License The MIT Licence (MIT). Please see [Licence File](https://github.com/thephpleague/container/blob/master/LICENSE.md) for more information.