Adventure PHP Framework supports Dependency Injection
The free Adventure PHP Framework version 1.10 has been released. The framework is designed to assist in the implementation of object oriented and reusable PHP based web applications and encourages the use of design patterns. Besides work on cleaning up the code and enhancing performance, the new version introduces a Dependency Injection container, similar to those found in the Java world's Spring framework, called DIServiceManager. The Adventure framework is now entirely based on PHP 5; a generated compatibility version to support PHP4 is also available and will continue to be published until early 2010.
Dependency Injection tackles the problem that in large applications there will be many direct dependencies between the objects that make up the application. By using the principle of Inversion Of Control (IoC) but focussing on the creation and initialisation of objects, it allows objects to be "injected" with their external dependencies rather than relying on developers to add code to discover the required external objects.
The Adventure PHP Framework is licensed under the LGPLv3 and can be downloaded from the Adventure PHP web site.