News Feed
Sections




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

NetTuts.com:
Dependency Injection in PHP
December 05, 2012 @ 09:29:38

If you've wondered what this "dependency injection" term is that's been floating around the PHP community for a bit now is all about, you should check out this new tutorial on NetTuts.com today. It's a an introduction to the term/functionality and its use in PHP.

Dependency injection has been a frequent subject of discussion among many corporate developers in the past few years. Many feared that they might sacrifice too much time building their application architecture without doing any real work. In this article, I'll explain why PHP developers should consider taking advantage of dependency injection, when building large, scalable projects.

They start off with the "what" if dependency injection, showing the refactoring of two classes using the "controller injection" method of dependency management. There's also some mention of its ability to help clean up a code base, some of the DI tools that are out there (like Pimple) and some good cases of when to use DI in your app.

0 comments voice your opinion now!
dependency injection tutorial introduction controller


blog comments powered by Disqus

Similar Posts

NETTUTS.com: Building a jQuery-Powered Tag-Cloud

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

SitePoint PHP Blog: Understanding Symfony Bundle Configuration and Service Container

PHPBuilder.com: Create a Dynamic Username Validator with PHP, MySQL and jQuery

Sameer Borate's Blog: Generating a color palette from a image in php


Community Events





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


symfony voicesoftheelephpant release version community series laravel conference introduction unittest list framework language podcast composer threedevsandamaybe interview opinion configure api

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