13: Interfaces in OOP PHP | Interfaces Explained | Object Oriented PHP Tutorial | PHP Tutorial



In this OOP PHP tutorial, I will let you know about Interfaces in OOP PHP. Interfaces in PHP are used to group together classes and give them a set of behaviours to follow, which ensures that there is more structure in your classes.

Link to interfaces:

➤ MEET OTHER AWESOME PEOPLE!

FollowAndrew
Channel:
With over 20 years experience, Andrew is creating web & front-end design tutorial videos!

And a special thanks to Derek and Taher Bannour who signed up to my $20 tier on Patreon just because they wanted to see the channel succeed!

➤ GET ACCESS TO MY LESSON MATERIAL HERE!

First of all, thank you for all the support you have given me!

I am really glad to have such an awesome community on my channel. It motivates me to continue creating and uploading content! So thank you!

I am now using Patreon to share improved and updated lesson material, and for a small fee you can access all the material. I have worked hard, and done my best to help you understand what I teach.

I hope you will find it helpful 🙂

Material for this lesson:

Nguồn: https://svdpch.org/

Xem thêm bài viết khác: https://svdpch.org/cong-nghe/

30 thoughts on “13: Interfaces in OOP PHP | Interfaces Explained | Object Oriented PHP Tutorial | PHP Tutorial”

  1. Please make video on iterators and generators in php and real life use cases, closures in php, also A real life OOP Project like: POS system would be a great help to learn.

    Reply
  2. your examples are one of the few that actually make sense and click for me, ive watched tons of youtube videos and took alot of online courses and no one comes close to how well you explain things and how well your examples are done and explained

    Reply
  3. i'm new to learn oop, and now i understand how it works by watching your tutorial. thanks a lot sir. hope theres a tutorial for using this oop for a simple website sir.

    Reply
  4. interface PaymentInterface { public function paymentProcess(); }

    Since the method paymentProceess has a payNow() method call.

    Pretty sure he forgot to do that….

    Reply
  5. You always find ways to make people smile whilst teaching a valuable lesson. That typo fix was simply epic 😁

    Reply
  6. I feel like I missed somethig considering that you started off the video by describing how complex it is…This video makes it look so easy.

    Reply
  7. Absolutely great video! Online guides use terrible examples like dogs or cars that has no real life relevance to make it sink in.
    I also love the depth you go to, like type hints and what they're about. +1 and subbed!

    Reply
  8. Best explanation of interfaces. I have tried to understand the use of them for some time. But this made it crystal clear

    Reply
  9. Thanks man. I was failing in understanding why the hell everybody says Interfaces are so powerful and give flexibility to your code. Yeah, they spit those words but they never tell you why, even worst, they just entangle with a lot of technical jargon speaking about things that implement a dependency of an object and blah blah blah (Which can be specially difficult for me because english is my second language and tutorials in spanish are not always very good). Finally someone explain it in plain words, thanks again. I'm guessing this is not the only thing you can do with Interfaces, but I'll keep reasearching and thanks to you I can understand things better now.

    Reply
  10. Coming from iOS with Swift, Interface sounds very much like Protocols. Conforming to a protocol means you need to implement the mandatory methods. This seems very very similar

    Reply

Leave a Comment