Registry / utility / ray-di

ray-di

JSON →
library2.20.0phppackagistunverified

Guice style dependency injection framework for PHP.

composer require ray/di
INSTALL
IMPORT
SIG · RAY-DI
R
ray-di
utilityphpv2.20.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Injector
use Ray\Di\Injector;

Create an injector and retrieve a class instance.

use Ray\Di\Injector; $injector = new Injector(); $instance = $injector->getInstance(SomeClass::class);
Debug
Known issues
breakingRequires PHP 8.0+ and may have breaking changes between major versions.
fix
Check the upgrade guide when updating from 1.x to 2.x.
affects: >=2.0
Upgrade
Version history
2.20.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
ray-di — pip install ray-di · libregistry