PHPackages                             vivace/di - 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. vivace/di

ActiveLibrary[Framework](/categories/framework)

vivace/di
=========

Inversion of Control with support for advanced inheritance of the container for building modular applications.

21171PHP

Since Jun 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/php-vivace/di)[ Packagist](https://packagist.org/packages/vivace/di)[ RSS](/packages/vivace-di/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

[![Build Status](https://camo.githubusercontent.com/0579696ad73acbf9577d786cc87527c2a62fea3b1d16be42a75b046435fb12cc/68747470733a2f2f7472617669732d63692e6f72672f7068702d7669766163652f64692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/php-vivace/di)[![Code Climate](https://camo.githubusercontent.com/8ab3654f6631d337447cbef5260eac0184d093dda23ab7fc7be18c7859a912da/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7068702d7669766163652f64692f6261646765732f6770612e737667)](https://codeclimate.com/github/php-vivace/di)[![Test Coverage](https://camo.githubusercontent.com/68de290cdb402e01e1a87ecfde7ee0598648e30501cbca3d042464a9afe81c97/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7068702d7669766163652f64692f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/php-vivace/di/coverage)[![Issue Count](https://camo.githubusercontent.com/0571ce10bb3450ae6d300ea2a30330b21aa05c766d49488fed67375a59f7dceb/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f7068702d7669766163652f64692f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/php-vivace/di)[![Latest Stable Version](https://camo.githubusercontent.com/9c3aa3a0fad74d1e911d760fb857d6e278d9324ba67f3a1e753d19d033d2668e/68747470733a2f2f706f7365722e707567782e6f72672f7669766163652f64692f762f737461626c65)](https://packagist.org/packages/vivace/di)[![composer.lock](https://camo.githubusercontent.com/589fc328642ac3527a2103674ae7cd17980bdb92d66f2ec71b959711b7371862/68747470733a2f2f706f7365722e707567782e6f72672f7669766163652f64692f636f6d706f7365726c6f636b)](https://packagist.org/packages/vivace/di)[![Monthly Downloads](https://camo.githubusercontent.com/7a6313bd41ffad2d45edebd73e48db63506c4b050488e41bced6a5c68c9416fd/68747470733a2f2f706f7365722e707567782e6f72672f7669766163652f64692f642f6d6f6e74686c79)](https://packagist.org/packages/vivace/di)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/cd7448063024ee2745c37d0ca51a3ac7feed581a77f33d677705f3267e895e6d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7068702d7669766163652f64692f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/php-vivace/di/?branch=master)

Synopsis
--------

[](#synopsis)

Inversion of Control container with support for advanced inheritance and resolving dependencies of the container. Use to build unrelated modular systems. See example for understanding.

Code Example
------------

[](#code-example)

See in `example` directory.

Motivation
----------

[](#motivation)

The main goal is to create a portable containers for modular application.

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

[](#installation)

```
composer require vivace/di
```

API Reference
-------------

[](#api-reference)

...

Tests
-----

[](#tests)

via docker-compose

docker-compose run --rm phpunit --testsuite=unit

via php

phpunit --testsuite=unit

Contributors
------------

[](#contributors)

...

License
-------

[](#license)

Copyright (c) 2017 Albert Sultanov

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/128423678?v=4)[KPEMATOP](/maintainers/KPEMATOP)[@KPEMATOP](https://github.com/KPEMATOP)

---

Top Contributors

[![typomaker](https://avatars.githubusercontent.com/u/8394514?v=4)](https://github.com/typomaker "typomaker (68 commits)")

---

Tags

dependency-injectioninheritanceiocphpphp71resolving-dependency

### Embed Badge

![Health badge](/badges/vivace-di/health.svg)

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

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k104.3M844](/packages/laravel-socialite)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k38.6M289](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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