Published by Fabian on 30 Jun 2009 at 11:04 am
State of the Art Dependency Injection for PHP
The second symfony component has gone live. It is the Dependency Injection Monkey. For me as a Java guy, who is used to Spring or Guice it is a relief to see that finally there is a compact and great PHP DI container available. If you never have heard about dependency injection (also called Inversion of Control) you should try to understand it. If you have and are developing PHP you should try the symfony dependency injection. Or better If you are on Java, try Spring
Robert on 01 Jul 2009 at 8:45 pm #
Or … you try out FLOW3 (http://flow3.typo3.org) which takes the power of Spring, but leaves out the XML configuration. And it introduces AOP, Signal Slots and more to PHP.
Marcelo Gornstein on 21 Feb 2011 at 3:04 pm #
Or…
you can try Ding (http://marcelog.github.com/Ding) which is also modeled after Sprintf(tm) for Java, it supports some JSR 250 and 330 annotations, xml and/or yaml as bean definitions providers, so it has a complete inversion of control and dependency injection container.
also it is much more lightweight than flow3, has different cache for each subsystem, supports signal handling, non blocking tcp clients and servers and many useful helpers (like syslog, etc)