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

ActiveLibrary[Framework](/categories/framework)

ray/di
======

Guice style dependency injection framework

2.20.0(4mo ago)1992.0M↓19%36[1 issues](https://github.com/ray-di/Ray.Di/issues)[3 PRs](https://github.com/ray-di/Ray.Di/pulls)20MITPHPPHP ^8.2CI passing

Since Mar 31Pushed 4mo ago8 watchersCompare

[ Source](https://github.com/ray-di/Ray.Di)[ Packagist](https://packagist.org/packages/ray/di)[ RSS](/packages/ray-di/feed)WikiDiscussions 2.x Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (108)Used By (20)

Ray.Di
======

[](#raydi)

A dependency injection framework for PHP
----------------------------------------

[](#a-dependency-injection-framework-for-php)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/1b26dab3dc3e0b53c33bd141fe1429c0eafaed152cbfd4a0289f28e8b530c485/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7261792d64692f5261792e44692f6261646765732f7175616c6974792d73636f72652e706e673f623d322e78)](https://scrutinizer-ci.com/g/ray-di/Ray.Di/?branch=2.x)[![codecov](https://camo.githubusercontent.com/f37b58ad485aabd1058aaaae92eadf0f2dca3d9db46b644af0466085653d33e2/68747470733a2f2f636f6465636f762e696f2f67682f7261792d64692f5261792e44692f6272616e63682f322e782f67726170682f62616467652e7376673f746f6b656e3d4b435158747530317a63)](https://codecov.io/gh/ray-di/Ray.Di)[![Type Coverage](https://camo.githubusercontent.com/77a9eeee3fb219e7413d3b18b1e92410a180c8d0e14de11425c7a597d84f8676/68747470733a2f2f73686570686572642e6465762f6769746875622f7261792d64692f5261792e44692f636f7665726167652e737667)](https://shepherd.dev/github/ray-di/Ray.Di)[![Continuous Integration](https://github.com/ray-di/Ray.Di/actions/workflows/continuous-integration.yml/badge.svg?branch=2.x)](https://github.com/ray-di/Ray.Di/actions/workflows/continuous-integration.yml)[![Total Downloads](https://camo.githubusercontent.com/70a1526794bf893d0d993ddfccca33c5528e3b50b5a1a949f68cbc8562937826/68747470733a2f2f706f7365722e707567782e6f72672f7261792f64692f646f776e6c6f616473)](https://packagist.org/packages/ray/di)

[![logo](https://camo.githubusercontent.com/a826cc4c0b7c71415633f338c0b5a2ec4d121f1b7f6d0b86fe9d3aa265f8ec0a/68747470733a2f2f7261792d64692e6769746875622e696f2f696d616765732f6c6f676f2e737667)](https://camo.githubusercontent.com/a826cc4c0b7c71415633f338c0b5a2ec4d121f1b7f6d0b86fe9d3aa265f8ec0a/68747470733a2f2f7261792d64692e6769746875622e696f2f696d616765732f6c6f676f2e737667)

Ray.Di is DI and AOP framework for PHP inspired by [Google Guice](https://github.com/google/guice/wiki).

###  Health Score

70

—

ExcellentBetter than 100% of packages

Maintenance74

Regular maintenance activity

Popularity60

Solid adoption and visibility

Community42

Growing community involvement

Maturity92

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 97.3% 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 ~46 days

Recently: every ~9 days

Total

101

Last Release

145d ago

Major Versions

1.x-dev → 2.0.0-alpha2015-01-16

PHP version history (10 changes)1.0.0PHP &gt;=5.4.0

2.4.0PHP &gt;=5.6.0

2.5.0PHP ~5.6|~7.0

2.5.1PHP 5.5.\*

2.6.0PHP &gt;=7.0.0

2.6.4PHP ^7.0

2.8.0PHP &gt;=7.1.0

2.10.1PHP &gt;=7.2.0

2.10.4PHP ^7.2 || ^8.0

2.19.0PHP ^8.2

### Community

Maintainers

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

---

Top Contributors

[![koriym](https://avatars.githubusercontent.com/u/529021?v=4)](https://github.com/koriym "koriym (2139 commits)")[![tudborg](https://avatars.githubusercontent.com/u/195468?v=4)](https://github.com/tudborg "tudborg (8 commits)")[![kumamidori](https://avatars.githubusercontent.com/u/384567?v=4)](https://github.com/kumamidori "kumamidori (6 commits)")[![lorenzo](https://avatars.githubusercontent.com/u/37621?v=4)](https://github.com/lorenzo "lorenzo (6 commits)")[![madapaja](https://avatars.githubusercontent.com/u/491357?v=4)](https://github.com/madapaja "madapaja (5 commits)")[![NaokiTsuchiya](https://avatars.githubusercontent.com/u/17171732?v=4)](https://github.com/NaokiTsuchiya "NaokiTsuchiya (4 commits)")[![mackstar](https://avatars.githubusercontent.com/u/197328?v=4)](https://github.com/mackstar "mackstar (4 commits)")[![kuma-guy](https://avatars.githubusercontent.com/u/7978290?v=4)](https://github.com/kuma-guy "kuma-guy (4 commits)")[![jamolkhon](https://avatars.githubusercontent.com/u/817941?v=4)](https://github.com/jamolkhon "jamolkhon (3 commits)")[![harikt](https://avatars.githubusercontent.com/u/120454?v=4)](https://github.com/harikt "harikt (3 commits)")[![yuya-takeyama](https://avatars.githubusercontent.com/u/241542?v=4)](https://github.com/yuya-takeyama "yuya-takeyama (2 commits)")[![craigjbass](https://avatars.githubusercontent.com/u/1889973?v=4)](https://github.com/craigjbass "craigjbass (2 commits)")[![fivestar](https://avatars.githubusercontent.com/u/30999?v=4)](https://github.com/fivestar "fivestar (2 commits)")[![holyshared](https://avatars.githubusercontent.com/u/167190?v=4)](https://github.com/holyshared "holyshared (2 commits)")[![MugeSo](https://avatars.githubusercontent.com/u/250446?v=4)](https://github.com/MugeSo "MugeSo (2 commits)")[![scrutinizer-auto-fixer](https://avatars.githubusercontent.com/u/6253494?v=4)](https://github.com/scrutinizer-auto-fixer "scrutinizer-auto-fixer (2 commits)")[![sasezaki](https://avatars.githubusercontent.com/u/42755?v=4)](https://github.com/sasezaki "sasezaki (1 commits)")[![andrew-demb](https://avatars.githubusercontent.com/u/12499813?v=4)](https://github.com/andrew-demb "andrew-demb (1 commits)")[![ggnet](https://avatars.githubusercontent.com/u/5439680?v=4)](https://github.com/ggnet "ggnet (1 commits)")[![vlakarados](https://avatars.githubusercontent.com/u/386678?v=4)](https://github.com/vlakarados "vlakarados (1 commits)")

---

Tags

annotationsaopautowiredependency-injectiondiguiceaopdi

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[nette/di

💎 Nette Dependency Injection Container: Flexible, compiled and full-featured DIC with perfectly usable autowiring and support for all new PHP features.

92340.6M1.4k](/packages/nette-di)[bear/sunday

A resource-oriented application framework

247584.6k21](/packages/bear-sunday)[goaop/framework

Framework for aspect-oriented programming in PHP.

1.7k4.0M33](/packages/goaop-framework)[bear/package

BEAR.Sunday application framework package

30527.9k23](/packages/bear-package)[jms/aop-bundle

Adds AOP capabilities to Symfony2

20413.7M22](/packages/jms-aop-bundle)[yiisoft/di

Yii DI container

2351.2M100](/packages/yiisoft-di)

PHPackages © 2026

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