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

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

zorachka/container
==================

Zorachka Container

v3.1.0(3y ago)11.6k2MITPHPPHP ^8.1

Since Nov 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/zorachka/container)[ Packagist](https://packagist.org/packages/zorachka/container)[ Docs](https://github.com/zorachka/container)[ GitHub Sponsors](https://github.com/zorachka)[ Fund](https://opencollective.com/zorachka)[ RSS](/packages/zorachka-container/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (5)Dependencies (7)Versions (6)Used By (2)

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

Zorachka Container
==================

[](#zorachka-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/fc98e9ccb067ad845e36205c9ccb99e8040b9eddc7847354b52015244a771805/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a6f726163686b612f636f6e7461696e65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zorachka/container)[![Tests](https://github.com/zorachka/container/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/zorachka/container/actions/workflows/run-tests.yml)[![Analysis](https://github.com/zorachka/container/actions/workflows/analyze.yml/badge.svg?branch=main)](https://github.com/zorachka/container/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/ddd3ebea604ec97d6a16a4f8909b01127377df36f280a483f05652789dfe4cf0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a6f726163686b612f636f6e7461696e65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zorachka/container)

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

[](#installation)

You can install the package via composer:

```
composer require zorachka/container
```

Usage
-----

[](#usage)

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

```
