PHPackages                             petk/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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. petk/php-container

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

petk/php-container
==================

PSR-11 compatible dependency injection container

v0.0.1(2y ago)15MITPHP

Since Jun 5Pushed 2y ago1 watchersCompare

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

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

PHP dependency injection container
==================================

[](#php-dependency-injection-container)

[![Test workflow](https://github.com/petk/php-container/actions/workflows/tests.yaml/badge.svg)](https://github.com/petk/php-container/actions/workflows/tests.yaml/badge.svg)

Lightweight PSR-11 compatible PHP dependency injection container.

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

[](#installation)

```
composer require petk/php-container
```

Usage
-----

[](#usage)

Create, for example, `config/container.php` file which returns container instance:

```
