Dependency Injection and Dependency Inversion in PHP

James Mallison (18.May.2017 at 11:15, 40 min)
Talk at PHP Tour 2017 Nantes (English - US)

Rating: 5 of 5

Dependency Injection and Dependency Inversion are important tools for writing testable and reusable code. They are available in any object oriented language and PHP is no exception. In this talk we will look at both Dependency Injection and the Dependency Inversion Principle, how they fit in with SOLID, and why they should be used when writing object oriented code. How are objects wired together? What is an object graph? Is a Dependency Injection Container the right way forward? Can we do this automatically, and are there any patterns or reusable components available to help us achieve reusable and decoupled code? These are some of the topics covered in this talk from both a theoretical and a practical standpoint. Walking out of the room you should understand why dependency injection is so heavily advocated in programming and how you can use it to write awesome, decoupled code in PHP.

Who are you?

Claim talk

Talk claims have been moved to the new Joind.in site.

Please login to the new site to claim your talk

Want to comment on this talk? Log in or create a new account or comment anonymously

Write a comment

 
Please note: you are not logged in and will be posting anonymously!
= nine minus two

Comments

Rating: 4 of 5

19.May.2017 at 10:48 by Nicolas (14 comments) via Web2 LIVE

well explained and clear :)

Rating: 5 of 5

19.May.2017 at 19:55 by Dmytro Naumenko (5 comments) via Web2 LIVE

Great step-by-step digging into the reasons for DI and profits of it. Slides were informative, the code was self-explainatory and easy to understand.

Rating: 5 of 5

20.May.2017 at 11:03 by lnc (30 comments) via Web2 LIVE


Rating: 4 of 5

21.May.2017 at 13:49 by Mikaël DELSOL (17 comments) via Web2 LIVE

a good recall about DI

Rating: 4 of 5

21.May.2017 at 18:56 by Ulrich (12 comments) via Web2 LIVE

Nice talk , thanks

Rating: 5 of 5

22.May.2017 at 11:10 by Wijdane AOUFI (13 comments) via Web2 LIVE

we should never forget the whys and the basics, great talk, great speaker

Rating: 5 of 5

22.May.2017 at 14:03 by Jacques Billard (4 comments) via Web2 LIVE

great talk

Rating: 5 of 5

22.May.2017 at 16:22 by Stéphane Hulard (16 comments)

Thank you James for that clear talk about DI, clear and well explained...

© Joind.in 2017