2nd*, 3rd & 4th October
Manchester, UK

James Mallison

James is a software engineer working at @localstars with a particular interest in software and technical architecture. Technically opinionated, he's passionate about best practices and frequently looks for shortcuts that can work for his team while still adhering to the principles that define good programming.

Conference Day 1

Dependency Injection and Dependency Inversion in PHP

Saturday 3rd October 12.00 - 12.50

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.

Supporters

  • uk-fast
  • sky-bet
  • magma-digital
  • inviqa
  • ampersand
  • jetbrains
  • docnet
  • digital-ocean
  • in2it
  • studio-24
  • phpStorm by JetBrains
  • add-your-logo

Community Partners