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

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

opis/container
==============

Serializable dependency injection container

3.0.0(7y ago)91.6k21Apache-2.0PHPPHP &gt;=7.0.0

Since Dec 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/opis/container)[ Packagist](https://packagist.org/packages/opis/container)[ Docs](https://opis.io/container)[ RSS](/packages/opis-container/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (3)Versions (16)Used By (1)

Opis Container
==============

[](#opis-container)

[![Build Status](https://camo.githubusercontent.com/289d41921066c73044a0a6177a880b664ddb8e79b0cb0a85a2dca31ba3f463fe/68747470733a2f2f7472617669732d63692e6f72672f6f7069732f636f6e7461696e65722e7376673f6272616e63683d332e30)](https://travis-ci.org/opis/container)[![Latest Stable Version](https://camo.githubusercontent.com/96cd1651b4d2c1046921883ef798b0a48f0e38e769df73cb9d395e419472fea9/68747470733a2f2f706f7365722e707567782e6f72672f6f7069732f636f6e7461696e65722f76657273696f6e2e706e67)](https://packagist.org/packages/opis/container)[![Latest Unstable Version](https://camo.githubusercontent.com/57f77356f52e946c609debfe06becf431e520854f038b6a3569b6ea44cf89d26/68747470733a2f2f706f7365722e707567782e6f72672f6f7069732f636f6e7461696e65722f762f756e737461626c652e706e67)](https://packagist.org/packages/opis/container)[![License](https://camo.githubusercontent.com/836f6120ea3b573aaae06e695cb578cb07c42ec4dfed2c29249b1889a68f9b16/68747470733a2f2f706f7365722e707567782e6f72672f6f7069732f636f6e7461696e65722f6c6963656e73652e706e67)](https://packagist.org/packages/opis/container)

Dependency injection container
------------------------------

[](#dependency-injection-container)

**Opis Container** is a library that provides an easy to use, fully serializable dependency injection container, with support for PSR-11.

### Documentation

[](#documentation)

The full documentation for this library can be found [here](https://opis.io/container)

### License

[](#license)

**Opis Container** is licensed under the [Apache License, Version 2.0](https://www.apache.org/licenses/LICENSE-2.0 "Apache License").

### Requirements

[](#requirements)

- PHP 7.0.\* or higher
- [Opis Closure](https://opis.io/closure) ^3.0
- [PSR Container](https://github.com/php-fig/container) ^1.0

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

[](#installation)

**Opis Container** is available on [Packagist](https://packagist.org/packages/opis/container "Packagist") and it can be installed from a command line interface by using [Composer](https://getcomposer.org "Composer").

```
composer require opis/container
```

Or you could directly reference it into your `composer.json` file as a dependency

```
{
    "require": {
        "opis/container": "^3.0"
    }
}
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 98.1% 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 ~182 days

Recently: every ~420 days

Total

15

Last Release

1973d ago

Major Versions

1.1.0 → 2.0.02014-02-14

2.3.x-dev → 3.0-alpha.12017-07-12

3.0.0 → 2020.x-dev2020-12-19

PHP version history (3 changes)1.0.0PHP &gt;=5.3.0

3.0-alpha.1PHP &gt;=7.0.0

2020.x-devPHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/47afaf3c711dd321c8d09bae2afed928971ec9e9a7593c925749696f04d2fddd?d=identicon)[msarca](/maintainers/msarca)

![](https://www.gravatar.com/avatar/7c720b40eb280d9fd33cc35d74c34b3763c2777bd2502d094625faa367f0dca4?d=identicon)[sorinsarca](/maintainers/sorinsarca)

---

Top Contributors

[![msarca](https://avatars.githubusercontent.com/u/5808737?v=4)](https://github.com/msarca "msarca (105 commits)")[![sorinsarca](https://avatars.githubusercontent.com/u/3427195?v=4)](https://github.com/sorinsarca "sorinsarca (2 commits)")

---

Tags

containerdependencyinjectioniocserializableopisPHP7

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[league/container

A fast and intuitive dependency injection container.

86387.8M343](/packages/league-container)[capsule/di

A PSR-11 compliant autowiring dependency injection container.

2857.5k2](/packages/capsule-di)[miladrahimi/phpcontainer

Dependency injection (IoC) container for PHP projects

1322.7k2](/packages/miladrahimi-phpcontainer)[slince/di

A flexible dependency injection container

20260.4k6](/packages/slince-di)[infocyph/intermix

A Collection of useful PHP class functions.

136.4k1](/packages/infocyph-intermix)

PHPackages © 2026

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