Multivariate in Composer - managing multiple variants for your package

One of the key features of Composer - the PHP community's package manager - is that you can't have two different versions of a Composer package in your project at the same time. Your project - and all the packages you depend upon - must agree on which versions to install, otherwise Composer cannot continue. Anyone who has used leading packages like Guzzle or PHPUnit over the last couple of years will have seen first-hand the problems this can cause when those leading packages get new, major versions.

In this talk, Stuart will introduce you to 'multivariants', a technique he uses with his own Composer packages to make sure his packages aren't contributing to the problem. He'll show you how to organise code inside your packages, and how to version your packages to work best with Composer. And finally, he'll look at what to do when it is time to stop supporting an old version of your code.

Speaker

Event