Dependency injection framework for PHP, similar to Spring

Installs: 6 108

Dependents: 0

Stars: 2

Watchers: 7

Forks: 4

Open Issues: 1

Language: PHP

v1.1.1 2014-05-21 18:06 UTC


Build Status

Bounce is a dependency injection framework for PHP, similar to a sub-set of Spring.


Create a context XML file (see some of the examples in the tests.) Instantiate an ApplicationContext implementation pointed at the context XML. Call the ApplicationContext's get method with bean names. Receive beans. ... profit.

What's supported

Only the basics. Setter and constructor injection work. Beans can be constructed from factories. Lookup methods work, but only if the bean doesn't get created by a factory. Scoping is really basic. Singleton is the default. Prototype is, in theory, supported.