News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Box UK Labs:
Dependency Injection and Reflection library
December 21, 2010 @ 08:45:24

On the Box UK Labs site there's an interesting dependency injection tool that uses Reflection to get some of the work done.

Dependency injection is a well known concept, and there are currently a plethora of DI containers available from one of the interweb's many pipes. These include Symfony and Crafty, while the Zend Framework also has its own DI container. So why another? One of my personal goals as a developer is to make things so simple, even I can understand them. But most of the DI containers I've come across require too much configuration, and usually via XML - yuck! So how is ours different?

The tool, boxuk-di, makes use of the Addendum tool to create injectable objects easily accessed via a namespace. You can also use type hinting, scoping and annotations to do special things (like make singleton injection objects). The also mention how primitives are used as well as dispelling some of the misconceptions around reflection and this particular tool.

0 comments voice your opinion now!
reflection dependency injection library boxuklabs


blog comments powered by Disqus

Similar Posts

MaltBlue.com: Zend Framework 2 Core Concepts - Dependency Injection

Sam Hennessy's Blog: A Dependency Injection for PHP Manifesto – Part 2 (Why I Want It)

Richard Davey\'s Blog: dBug - var_dump with style!

Web Development Blog: Create PDF documents Online with TCPDF

SitePoint Web Blog: On Our Radar: PHP 7 Controversy and Dependency Injection


Community Events

Don't see your event here?
Let us know!


extension framework unittest introduction podcast library version laravel5 community language example php7 series voicesoftheelephpant laravel release interview api opinion list

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework