Building Your Own Web Framework - Dependency Injection Container

You don t need a complex DI container library. I ll show you how to build your own from scratch using PHP reflections. It handles recursive dependency resolution, primitive arguments, and object caching. Dead simple to understand and works perfectly for our framework.