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

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

mobicms/container
=================

PSR-11 dependency injection container

1.1.0(3y ago)0146GPL-3.0-onlyPHPPHP ~8.1 || ~8.2CI passing

Since Dec 29Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/mobicms/container)[ Packagist](https://packagist.org/packages/mobicms/container)[ Docs](https://mobicms.org)[ RSS](/packages/mobicms-container/feed)WikiDiscussions main Synced today

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

`mobicms/container`
===================

[](#mobicmscontainer)

[![GitHub](https://camo.githubusercontent.com/baa532a39e1fd4ad0cce4d4b958d6f39a617254fdfed7fa55a58b7d941440e91/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d6f6269636d732f636f6e7461696e65723f636f6c6f723d677265656e)](https://github.com/mobicms/container/blob/main/LICENSE)[![GitHub release (latest SemVer)](https://camo.githubusercontent.com/a0c66932a5a914e5d7bc2f03e52ca3bb9d28389bd57b1b2f4e312c1e6accb7d6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f6d6f6269636d732f636f6e7461696e6572)](https://github.com/mobicms/container/releases)[![Packagist](https://camo.githubusercontent.com/49cc439d7b8f76a5d4e40a4ace1fa9c0db043cf7ad312e45efde11cb028b19b4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6f6269636d732f636f6e7461696e6572)](https://packagist.org/packages/mobicms/container)

[![CI-Analysis](https://github.com/mobicms/container/workflows/analysis/badge.svg)](https://github.com/mobicms/container/actions?query=workflow%3AAnalysis)[![CI-Tests](https://github.com/mobicms/container/workflows/tests/badge.svg)](https://github.com/mobicms/container/actions?query=workflow%3ATests)[![Sonar Coverage](https://camo.githubusercontent.com/5eb404b2d90f64737f302248e1b958aa4e60045723f27f8f5a929bb1d3881c0b/68747470733a2f2f696d672e736869656c64732e696f2f736f6e61722f636f7665726167652f6d6f6269636d735f636f6e7461696e65723f7365727665723d6874747073253341253246253246736f6e6172636c6f75642e696f)](https://sonarcloud.io/code?id=mobicms_container)[![Quality Gate Status](https://camo.githubusercontent.com/690e42ae0bd99a301eb98c1d0868bdd4342589f851595c700070916d1edc0582/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d6d6f6269636d735f636f6e7461696e6572266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/summary/overall?id=mobicms_container)

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

[](#installation)

The preferred method of installation is via [Composer](http://getcomposer.org). Run the following command to install the package and add it as a requirement to your project's `composer.json`:

```
composer require mobicms/container
```

Usage
-----

[](#usage)

Documentation is in the process of writing and will be available later...
[Example of using it in a real project](https://github.com/mobicms/mobicms/blob/main/system/config/container.php).

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

[](#contributing)

Contributions are welcome! Please read [Contributing](https://github.com/mobicms/container/blob/main/.github/CONTRIBUTING.md) for details.

[![YAGNI](https://camo.githubusercontent.com/e1f8100c3dfd80580c04a86c4d0256859dee3500f1cb72b49fd5b818ac706763/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7072696e6369706c652d5941474e492d626c756576696f6c65742e737667)](https://en.wikipedia.org/wiki/YAGNI)[![KISS](https://camo.githubusercontent.com/043ec2c879d965dedcda490418f4bc7b81b9fa0429a262cdb01a4f77f787059a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7072696e6369706c652d4b4953532d626c756576696f6c65742e737667)](https://en.wikipedia.org/wiki/KISS_principle)

In our development, we follow the principles of [YAGNI](https://en.wikipedia.org/wiki/YAGNI) and [KISS](https://en.wikipedia.org/wiki/KISS_principle). The source code should not have extra unnecessary functionality and should be as simple and efficient as possible.

License
-------

[](#license)

This package is licensed for use under the MIT License.
Please see [LICENSE](https://github.com/mobicms/container/blob/main/LICENSE) for more information.

Copyright
---------

[](#copyright)

Copyright (c) 2021 [mobiCMS Project](https://mobicms.org).
All rights to used third-party libraries, fonts, images, etc. reserved by their authors.

Our links
---------

[](#our-links)

- [**mobiCMS Project**](https://mobicms.org) website and support forum
- [**GitHub**](https://github.com/mobicms) mobiCMS project repository
- [**Twitter**](https://twitter.com/mobicms)

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~93 days

Total

2

Last Release

1188d ago

PHP version history (2 changes)1.0.0PHP ~8.0 || ~8.1 || ~8.2

1.1.0PHP ~8.1 || ~8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/e42a5494431106545de0b1529ebc673c671421f0ef2c72082d36b937d6c188b1?d=identicon)[AlkatraZ](/maintainers/AlkatraZ)

---

Top Contributors

[![batumibiz](https://avatars.githubusercontent.com/u/10770779?v=4)](https://github.com/batumibiz "batumibiz (37 commits)")

---

Tags

containerPSR-11mobicms

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[php-di/php-di

The dependency injection container for humans

2.9k55.5M1.2k](/packages/php-di-php-di)[slince/di

A flexible dependency injection container

20272.1k6](/packages/slince-di)[chubbyphp/chubbyphp-container

A simple PSR-11 container implementation.

1981.2k14](/packages/chubbyphp-chubbyphp-container)[infocyph/intermix

A lightweight PHP DI container, invoker, serializer, and utility toolkit.

137.7k2](/packages/infocyph-intermix)[selective/container

A simple PSR-11 container implementation with autowiring.

1323.7k4](/packages/selective-container)

PHPackages © 2026

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