PHPackages                             samsonframework/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. samsonframework/di

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

samsonframework/di
==================

SamsonFramework dependency injection

2.1.2(9y ago)16422Open Software License (OSL) v 3.0PHPPHP ^7.0

Since Jan 27Pushed 9y ago2 watchersCompare

[ Source](https://github.com/samsonframework/di)[ Packagist](https://packagist.org/packages/samsonframework/di)[ Docs](http://samsonos.com/)[ RSS](/packages/samsonframework-di/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (8)Dependencies (2)Versions (10)Used By (2)

SamsonFramework DI package
==========================

[](#samsonframework-di-package)

SamsonFramework dependency injection container implementation

[![Latest Stable Version](https://camo.githubusercontent.com/38ef0feadbae54951efc3a3ad347f15ac6cf13457dc0e24123c1973efd088b45/68747470733a2f2f706f7365722e707567782e6f72672f73616d736f6e6672616d65776f726b2f64692f762f737461626c652e737667)](https://packagist.org/packages/samsonframework/di)[![Build Status](https://camo.githubusercontent.com/13a2038a660e00ed01b702f02402f38d324d1d8041f66cf3bb85e4a989031c83/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73616d736f6e6672616d65776f726b2f64692f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/samsonframework/di/build-status/master)[![Code Coverage](https://camo.githubusercontent.com/5298112a292526beaa382703d409a653acc62a8bd7078cb77b5b264029c3fe61/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73616d736f6e6672616d65776f726b2f64692f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/samsonframework/di/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/bf553675783e2be5644d72ae4ed7fb89e3a5adca486e22a15037cd462bccd2a0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f73616d736f6e6672616d65776f726b2f64692f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/samsonframework/di/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/3b5161346ec1889209d3671d6fe0554ed103aba9be684c1b4e6cd121d140cab4/68747470733a2f2f706f7365722e707567782e6f72672f73616d736f6e6672616d65776f726b2f64692f646f776e6c6f6164732e737667)](https://packagist.org/packages/samsonframework/di)[![Stories in Ready](https://camo.githubusercontent.com/8a33d5b55c648ca3b4421cc195fe8e03f08aae0a70eb6f5a4019d0aa7f51d8b2/68747470733a2f2f62616467652e776166666c652e696f2f73616d736f6e6672616d65776f726b2f64692e706e673f6c6162656c3d7265616479267469746c653d5265616479)](https://waffle.io/samsonframework/di)

\##Documentation Follow [official documentation](http://github.com/samsonframework/di/blob/master/docs/Index.md).

\##Installation You can install this package through Composer: `composer require samsonframework/di`

The packages adheres to the SemVer specification, and there will be full backward compatibility between minor versions.

\##Testing `$ vendor/bin/phpunit`

\##Contributing Feel free to fork and create pull requests at any time.

\##Security If you discover any security related issues, please use this repository issue tracker.

\##License Open Software License ("OSL") v 3.0. Please see License File for more information.

[SamsonOS](http://samsonos.com)

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 99% 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 ~26 days

Recently: every ~3 days

Total

9

Last Release

3592d ago

Major Versions

1.0.1 → 2.0.02016-05-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/0be8756efdc8f599b8fe9261bed31570d0f140a3b921f0f891877a9133ad654c?d=identicon)[samsonos](/maintainers/samsonos)

---

Top Contributors

[![vitalyiegorov](https://avatars.githubusercontent.com/u/586558?v=4)](https://github.com/vitalyiegorov "vitalyiegorov (97 commits)")[![rmolodyko](https://avatars.githubusercontent.com/u/4399482?v=4)](https://github.com/rmolodyko "rmolodyko (1 commits)")

---

Tags

didependeny injection

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[level-2/dice

A minimalist Dependency injection container (DIC) for PHP. Please note: 3.0+ is only compatible with PHP 7.0. The 2.0 branch is compatbile with PHP 5.6.

437773.0k19](/packages/level-2-dice)[hyperf/di

A DI for Hyperf.

172.9M634](/packages/hyperf-di)[marcelog/ding

PHP Dependency Injection based on Spring(tm), with Aspect Oriented Programming, MVC

1192.1k](/packages/marcelog-ding)[x-wp/di

The dependency injection container for WordPress

314.2k13](/packages/x-wp-di)

PHPackages © 2026

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