PHPackages                             a50/container-php-di - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. a50/container-php-di

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

a50/container-php-di
====================

A50 Container

04PHP

Since Apr 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/a50dev/container-php-di)[ Packagist](https://packagist.org/packages/a50/container-php-di)[ RSS](/packages/a50-container-php-di/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

 [ ![](https://avatars0.githubusercontent.com/u/86768962) ](https://github.com/A50dev)

A50 Container
=============

[](#a50-container)

This package provides a factory for [PSR-11](http://www.php-fig.org/psr/psr-11/) compatible [dependency injection](http://en.wikipedia.org/wiki/Dependency_injection) container that is able to instantiate and configure classes resolving dependencies and `ServiceProvider` interface.

Uses [PHP-DI](https://php-di.org/) as a core.

[![Latest Version on Packagist](https://camo.githubusercontent.com/44a326caefb8c426f315a7f6faf9ce76ec4dbe4a0f4460da486d582a0e8622f6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6135302f636f6e7461696e65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/a50/container)[![Tests](https://github.com/a50/container/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/a50/container/actions/workflows/run-tests.yml)[![Analysis](https://github.com/a50/container/actions/workflows/analyze.yml/badge.svg?branch=main)](https://github.com/a50/container/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/b491d15c4c1d260b9a5f26151a2aad25154304857078344010adf2774dec6f6e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6135302f636f6e7461696e65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/a50/container)

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require a50/container
```

Usage
-----

[](#usage)

To create a container you need to pass array of `ServiceProvider` objects interface:

```
