ray / di
Guice style dependency injection framework
2.23.0
2026-08-10 20:12 UTC
Requires
- php: ^8.2
- koriym/null-object: ^1.0
- ray/aop: ^2.19
Requires (Dev)
- ext-pdo: *
- bamarni/composer-bin-plugin: ^1.4
- phpunit/phpunit: ^11.0
Suggests
- ray/compiler: For compiling dependency injection container to improve performance
- ray/object-visual-grapher: For visualizing composed bindings and the object graph
This package is auto-updated.
Last update: 2026-08-11 12:31:54 UTC
README
A dependency injection framework for PHP
Ray.Di is DI and AOP framework for PHP inspired by Google Guice.
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.