Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

PHP 5.3/5.4 best practices tutorial: dependency injection

DZone's Guide to

PHP 5.3/5.4 best practices tutorial: dependency injection

· Web Dev Zone
Free Resource

Learn how to build modern digital experience apps with Crafter CMS. Download this eBook now. Brought to you in partnership with Crafter Software

One common problem developers often face is: how best to handle dependency injection (DI)? especially (for web developers) in an age when web technologies are changing at breakneck speed.

As with many bad programming practices, avoiding dependencies is often the faster route. When deadlines matter -- and they always do -- faster often seems better, even when you know there's a better way.

That's why it's important to keep refining your DI skills. That's why Fabien Potencier made this slideshare on dependecy injection in PHP 5.3/5.4:


 

If you're already comfortable with the concept, you might skip to slide 54, which gives you less tutorial and more results. Otherwise, take a few minutes to click through the whole presentation and potentially save many hours months down the road.

Crafter is a modern CMS platform for building modern websites and content-rich digital experiences. Download this eBook now. Brought to you in partnership with Crafter Software.

Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}