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

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

yaapi/di
========

YaAPI DI Package

v1.0.2(10y ago)028LGPL-2.1+PHPPHP &gt;=5.4.3

Since Jul 17Pushed 10y ago1 watchersCompare

[ Source](https://github.com/yaapi/di)[ Packagist](https://packagist.org/packages/yaapi/di)[ Docs](https://github.com/yaapi/di)[ RSS](/packages/yaapi-di/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

DI Package [![Build Status](https://camo.githubusercontent.com/e88948c0f5ebef1d2614e3cd73d7ebf42a17e138cc99ef727b59a87b025cc62a/68747470733a2f2f7472617669732d63692e6f72672f79616170692f64692e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/yaapi/di)
==================================================================================================================================================================================================================================================================

[](#di-package-)

[![Latest Stable Version](https://camo.githubusercontent.com/7c004179d68c5d89b2275f55ca443de658986a3ca3622cfa4d349a95c0ac541c/68747470733a2f2f706f7365722e707567782e6f72672f79616170692f64692f762f737461626c65)](https://packagist.org/packages/yaapi/di)[![Latest Unstable Version](https://camo.githubusercontent.com/e5e6d274564679ccb3168d74c38c5073be317a103f71b854442f89265cc0b192/68747470733a2f2f706f7365722e707567782e6f72672f79616170692f64692f762f756e737461626c65)](https://packagist.org/packages/yaapi/di)[![License](https://camo.githubusercontent.com/7af0a5644d81b6081f0469e96415191aef64f387a8dd03bc1bde140fdcb55833/68747470733a2f2f706f7365722e707567782e6f72672f79616170692f64692f6c6963656e7365)](https://packagist.org/packages/yaapi/di)

The Dependency Injection package for YaAPI provides a simple IoC Container for your application. Dependency Injection allows you the developer to control the construction and lifecycle of your objects, rather than leaving that control to the classes themselves. Instead of hard coding a class's dependencies within the class `__construct()` method, you instead provide to a class the dependencies it requires as arguments to its constructor. This helps to decrease hard dependencies and to create loosely coupled code.

An Inversion of Control (IoC) Container helps you to manage these dependencies in a controlled fashion.

Installation via Composer
-------------------------

[](#installation-via-composer)

Add `"yaapi/di": "^1.0.1"` to the require block in your composer.json.

```
{
	"require": {
		"yaapi/di": "^1.0.1"
	}
}
```

Alternatively, you can simply run the following from the command line:

```
composer require yaapi/di:^1.0.1
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

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

Total

3

Last Release

3950d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1529e3556d40bd739c08a6af532140ca432b4ea7a1b1c1b0a36235c58e5d992f?d=identicon)[vess](/maintainers/vess)

---

Top Contributors

[![vess](https://avatars.githubusercontent.com/u/1426374?v=4)](https://github.com/vess "vess (9 commits)")

---

Tags

containerdependency-injectiondiiocyaapi

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[php-di/php-di

The dependency injection container for humans

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

A flexible dependency injection container

20260.4k6](/packages/slince-di)[capsule/di

A PSR-11 compliant autowiring dependency injection container.

2857.5k2](/packages/capsule-di)

PHPackages © 2026

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