ray/di

Guice style dependency injection framework

Maintainers

Package info

github.com/ray-di/Ray.Di

pkg:composer/ray/di

Transparency log

Statistics

Installs: 2 368 478

Dependents: 77

Suggesters: 1

Stars: 200

Open Issues: 1

2.23.0 2026-08-10 20:12 UTC

README

A dependency injection framework for PHP

Scrutinizer Code Quality codecov Type Coverage Continuous Integration Total Downloads

logo

Ray.Di is DI and AOP framework for PHP inspired by Google Guice.

https://ray-di.github.io

Binding diagnostics

When the injector is created with a writable directory, Ray.Di records how the container was composed — every binding, its module, and which binding won each collision — and writes bindings.md into it. The ray/bindings package renders it as an interactive HTML page. See Binding Diagnostics in the manual.

bindings.html: object graph, summary, and binding list