NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #2628 most downloaded on Packagist
Guice style dependency injection framework
Latest stable
2.23.1
Last release 2 months ago
30 Aug 2026
Release timing varies
gaps range from 3 weeks to 12 months
Nearly every release is documented
notes for 56 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
14 years old
103 releases · first in 2013
Drag across the ruler to compare, or tap a release to open it.
This release fix the error that it load annotation twice in certain condition (apc cache). Huge thanks for helping to fix this bug for Chiba san and S
This release fix the error that it load annotation twice in certain condition (apc cache). Huge thanks for helping to fix this bug for Chiba san and Sakata san in Excite Japan. Arigato !
This release supports @Assisted injection.
This release supports @Assisted injection.
It is possible to inject dependencies directly in the invoke method parameter(s). When doing this, add the dependency to the end of the arguments and set the default value to null, it is also required to annotate the method using @Assisted.
module
class FooModule extends AbstractModule
{
protected function configure()
{
$this->bind(RobotInterface::class)->to(Robot::class);
$this->bind()->annotatedWith('one')->toInstance(1);
}
}
dependent
class AssistedConsumer
{
/**
* @Assisted({"robot"})
*/
public function foo(RobotInterface $robot)
{
return $robot;
}
/**
* @Assisted({"var1"})
* @Named("var1=one")
*/
public function bar($a, $var1)
{
return $var1;
}
/**
* @Assisted({"var2", "robot"})
* @Named("var2=one")
*/
public function baz($var2, FakeRobotInterface $robot)
{
return [$var2 , $robot];
}
}
$consumer->foo(); // Robot
$consumer->bar(0); // 1
$consumer->baz(); // [1, Robot]
#139
Your coding agent can read these notes before it upgrades. Set up the MCP server →
This release fix error message issue #133.
This release fix error message issue #133.
This release adds ability to generate clearer error messages when unbounds are thrown.
This release adds ability to generate clearer error messages when unbounds are thrown.
exception 'Ray\Di\Exception\Untargetted' with message 'Ray\Di\Demo\E'
- dependency 'Ray\Di\Demo\E' with name '' used in /Users/tbug/src/Ray.Di/docs/demo/src/D.php:7
- dependency 'Ray\Di\Demo\D' with name '' used in /Users/tbug/src/Ray.Di/docs/demo/src/C.php:7
- dependency 'Ray\Di\Demo\C' with name '' used in /Users/tbug/src/Ray.Di/docs/demo/src/B.php:7
- dependency 'Ray\Di\Demo\B' with name '' used in /Users/tbug/src/Ray.Di/docs/demo/src/A.php:7
Special thanks to @tbug.
This release add binding-annotations-in-setters feature. https://github.com/ray-di/Ray.Di#binding-annotations-in-setters
This release add binding-annotations-in-setters feature.
https://github.com/ray-di/Ray.Di#binding-annotations-in-setters
Thanks @lorenzo !
Nothing published for this version
This release fix bug #125 #126
This release fix bug #125 #126
This release fix the bug #125.
This release fix the bug #125.
This release use Ray.Compiler version 1.0.
This release use Ray.Compiler version 1.0.
This release support Ray.Compiler on Windows platform.
This release support Ray.Compiler on Windows platform.
A name of generated dependency instance file is changed from Interface-*.php to Intetrface-.php when no name binding is given. (no astrasik)
This release fix the issue on serialization of the Injector. If you have a singleton instance by provider and try to serialize after injection. The pr
This release fix the issue on serialization of the Injector. If you have a singleton instance by provider and try to serialize after injection. The problem may occur before this release.
This release fix the issue the compiled class on demand is not weaved aspects.
This release fix the issue the compiled class on demand is not weaved aspects.
This release add Ray.Compiler sub package. It generates raw factory PHP code for better performance and to clarify how the instance is created.
This release add Ray.Compiler sub package. It generates raw factory PHP code for better performance and to clarify how the instance is created.
gracias @lorenzo
ADD JSR 330 Qualifier annotation
Initial 2.0 stable release.
Qualifier annotationtoConstructor allow third party class AOPInjection PointAspect bound order by method annotation order (top to bottom)bindPriorityInterceptor for priority bind interceptorfeature complete
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
ModuleCacheInjector enable to boost performance by caching module but each injection process stay same. Less performance than Di Compiler but have mor
ModuleCacheInjector enable to boost performance by caching module but each injection process stay same. Less performance than Di Compiler but have more compatibility with native InjectorNothing published for this version
- more stability in di compiler - fallback if failed in compile
Nothing published for this version
Nothing published for this version
Extract Injector class for refactor. Scrutinizer score increased 5.x to 9.x
Injector class for refactor. Scrutinizer score increased 5.x to 9.xNothing published for this version
bug fix for DI compiler (serialize error)
[91f5a1c4975d72a6d16763b0d57a9a16d670428f] enable to bind toProvider binding without type hinting (thanks @mugeso)
toProvider binding without type hinting (thanks @mugeso)[bug fix] https://github.com/koriym/Ray.Di/commit/c398ad79cef72c6564b04b104e06bcda8b71aea1 register Ray.Di annotation autoloader
aop_dir dependency.CacheInjector__invoke, it is internal package API.(*) These "BC BREAK" may cause no effect in most use case.
[#40] Fix for @Inject'ing the constructor twice
Nothing published for this version
[#37] Make annotation-based scopes match the documentation
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
0.0.1 First commit (2011-10-11)
First stable release
0.0.1 First commit (2011-10-11)
One column per quarter.