News Feed
Sections




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

SitePoint PHP Blog:
Introducing Bucket A Minimal Dependency Injection Container for PHP
May 11, 2009 @ 07:58:04

On the SitePoint PHP blog Troels Knak-Nielsen has posted about a new tool he's whipped up to handle dependency injections - Bucket.

I got fed up with the lack of a decent DI-container for PHP, so today I created Bucket. To be clear, what I think is wrong with the currently available containers (at least that I'm aware of) is that they either are unstable, abandoned, require a lot of up-front configuration in external XML-files, or are tightly integrated into some full-stack framework. I had my hopes up for Phemto for a while, but it seems that progress has stalled.

He includes a few bits of examples code in the post showing how to use type hinting, the factory method, callbacks and its support for child scopes. If you'd like to check it out for yourself, you can clone it from github.

0 comments voice your opinion now!
dependency injection bucket container github


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: Dependency Injection with Laravelís IoC

Ibuildings techPortal: DPCRadio: Real World Dependency Injection

Stefan Mischook's Blog: Defending against SQL Injection attacks

Greg Beaver's Blog: Be careful of PEAR 1.4.4 and older installs when uninstalling a package

Paul Jones' Blog: Dependency Injection in Solar


Community Events

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


framework opinion security library language laravel5 interview unittest podcast introduction version symfony api series community voicesoftheelephpant extension laravel threedevsandamaybe release

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