Click here to Skip to main content
15,891,976 members
Articles / Programming Languages / PHP

A Simple Dependency Injection Container

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
12 Apr 2014CPOL6 min read 10.8K   82   6  
A lightweight dependency injection container for PHP
This article explains Dependency Injection pattern and presents a simple DI Container class that can be used in PHP projects.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Web Developer
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions