When to use Traits, Interfaces, and Abstract Classes in PHP
Andrew Schmelyun Andrew Schmelyun
37K subscribers
21,049 views
1K

 Published On Aug 25, 2023

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

Send me new video ideas and vote on what's coming next: https://suggest.gg/aschmelyun

Follow me on Twitter!   / aschmelyun  

Join my newsletter, where I send out new information about twice a month in the PHP, JavaScript, and Docker realms: https://aschmelyun.substack.com

show more

Share/Embed