PHPackages                             allenlinatoc/php-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. [Framework](/categories/framework)
4. /
5. allenlinatoc/php-container

ActiveLibrary[Framework](/categories/framework)

allenlinatoc/php-container
==========================

PSR-11 compliant container class specifically built for Slim v4, on top of Pimple.

v1.0.2(6y ago)02.6kMITPHPPHP &gt;=5.6

Since Jan 10Pushed 6y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (2)Versions (8)Used By (0)

allenlinatoc/php-container
==========================

[](#allenlinatocphp-container)

PSR-11 compliant container class specifically built for Slim v4, on top of Pimple.

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

[](#installation)

**Warning:** This is not yet Production-ready.

`composer require allenlinatoc/php-container "v1.0.1-beta"`

Usage
-----

[](#usage)

```
AppFactory::setContainer(new Allenlinatoc\PhpContainer\Container());

```

Now use it like how you are used to Pimple container.

Assuming you have a Twig PHP file as a service called `twig.php`:

```
