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

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

getwarp/container
=================

Decent dependency injection container compatible with PSR-11

3.1.2(3y ago)18643MITPHPPHP ^7.4|^8.0

Since Apr 22Pushed 3y ago1 watchersCompare

[ Source](https://github.com/getwarp/container)[ Packagist](https://packagist.org/packages/getwarp/container)[ Docs](https://github.com/getwarp/container)[ GitHub Sponsors](https://github.com/getwarp)[ GitHub Sponsors](https://github.com/hustlahusky)[ RSS](/packages/getwarp-container/feed)WikiDiscussions 3.1.x Synced 1mo ago

READMEChangelogDependencies (10)Versions (10)Used By (3)

getwarp/container
=================

[](#getwarpcontainer)

Decent dependency injection container compatible with PSR-11

[GitHub](https://github.com/getwarp/container) • [Packagist](https://packagist.org/packages/getwarp/container) • [Installation](#installation) • [Usage](#usage)

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

[](#installation)

Via Composer

```
$ composer require getwarp/container
```

Usage
-----

[](#usage)

```
use Warp\Container\DefinitionContainer;
use Warp\Container\FactoryContainer;
use Warp\Container\CompositeContainer;

$container = new CompositeContainer([
    new DefinitionContainer(),
    new FactoryContainer(),
]);
```

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

[Report issues](https://github.com/getwarp/warp/issues) and [send pull requests](https://github.com/getwarp/warp/pulls) in the [main Warp repository](https://github.com/getwarp/warp). Please see [contributing guide](https://github.com/getwarp/warp/blob/3.1.x/CONTRIBUTING.md) and [code of conduct](https://github.com/getwarp/.github/blob/main/CODE_OF_CONDUCT.md) for details.

Credits
-------

[](#credits)

- [Constantine Karnaukhov](https://github.com/hustlahusky)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [license file](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~36 days

Recently: every ~69 days

Total

10

Last Release

1161d ago

Major Versions

2.5.3 → 3.0.02022-04-22

2.5.x-dev → 3.0.22022-06-12

PHP version history (2 changes)2.5.3PHP ^7.2|^8.0

3.0.0PHP ^7.4|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3947942?v=4)[Constantine Karnaukhov](/maintainers/tntrex)[@tntrex](https://github.com/tntrex)

---

Top Contributors

[![tntrex](https://avatars.githubusercontent.com/u/3947942?v=4)](https://github.com/tntrex "tntrex (14 commits)")

---

Tags

containerPSR-11dependencyinjectiondiiocpsr11serviceproviderinversion of control

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/getwarp-container/health.svg)

```
[![Health](https://phpackages.com/badges/getwarp-container/health.svg)](https://phpackages.com/packages/getwarp-container)
```

###  Alternatives

[league/container

A fast and intuitive dependency injection container.

86787.8M343](/packages/league-container)[php-di/php-di

The dependency injection container for humans

2.8k48.9M994](/packages/php-di-php-di)[capsule/di

A PSR-11 compliant autowiring dependency injection container.

2857.5k2](/packages/capsule-di)[slince/di

A flexible dependency injection container

20260.4k6](/packages/slince-di)[miladrahimi/phpcontainer

Dependency injection (IoC) container for PHP projects

1322.7k2](/packages/miladrahimi-phpcontainer)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
