When to use Traits, Interfaces, and Abstract Classes in PHP

If you’ve been working in PHP for at least a little while, chances are you’ve come across a Trait, Interface, or Abstract Class. What are they? How can I use them effectively? Let’s dive in and discover a couple of use cases for each of them, and I’ll explain some of their differences (and similarities). - 0:00 TL;DR - 0:47 Intro - 1:25 Traits - 5:48 Interfaces - 10:27 Abstract Classes - 14:49 All Done Follow me on Twitter! Join my newsletter, where I send out new information about twice a month in the PHP, JavaScript, and Docker realms:
Back to Top