This course is a true gem! It's the first time I watched a 3h course and felt I really understood the concepts. Thank you so much Gary! Looking forward for the full course :)
Thanks Giulia..I'm just working on the last few videos for it and it should be released soon. I send regular updatesand previews to my mailing list subscibers.
I started learning PHP from a book in the early 2000's and I have always been intimidated by classes in PHP. I'm 45 minutes into this video and I already understand so much more than I ever have about the OOP side of PHP. I feel like this knowledge will allow me to integrate third-party APIs. I'm definitely buying the full course after I make it through this video!
Finally a course with proper teaching strategies. I cant believe the amount of online teachers who fail to understand that teacing isnt telling. Videos like yours Gary are how people escape from tutorial hell. Will be recommending your content!
I never thought PHP OOP will be this easier to understand, after watching a dozen of courses on PHP OOP without any success. But you Gary have made it simpler, digestible and literally understandable. If this is just a preview of what I will learn in the full course, then you have a new course and UA-cam subscriber. Thank you for this course
hey,I'm not an english native speaker and i almost gave up on this video because your accent is too "british",(dont get offended) but eventually tried to follow along keenly and my! you actually teach so well,i grasped every tiny piece of information,thank you Gary!
just when I thought Yt have been flooded with tongue and head twisted bland contents, this guy appear and make high quality personalized topics a reality again!
Excellent work, i was looking for a php oop course for a while now and it's very fortunate i found your amazing course, thank you! i'am looking forward to learn more from you
Came from your older Object course. Both are amazing quality, but this is even more complete! Good to see you are staying away from your brothers spotify playlist this time. I guess he found the Beatles song🤣
Ah kind words..I really appreciate it. This is the first 3 hours of the full course which will be available on www.garyclarke.tech in September. I'm still working on it.
Good and practical example for how to implement inheritance from 01:12:00 to 01:51:00. But the concept of "composition over inheritance" could have been demonstrated here too. I.e. PhysicalBook and DigitalBook could both implement some interfaces and take a "Book" instance in their constructor. It's a bit more complex than just slapping inheritance onto it because you have to construct two objects now. But this in turn would be a good opportunity to talk about factories. These topics would probably exceed the scope of this course, but they are so important in modern programming (due to the painful lessons learned from using inheritance in the last decades) that it should at least be mentioned.
Yes good points. I don't think I'd yet taught dependency injection by this point of the course but there's quite a lot of composition later in the full course.
WOW! This channel is really great for the beginners who wants to understand OOP. Your examples in video are really from simple which is helpful for beginner and who want to learn in hurry (crash course?).Perfect video exactly i was looking for with challenges and extremely simple codes.. other youtubers also have good videos on php but many times examples are confusing.. your on the other hand is very simple, straightforward and enjoyable for especially who want to learn this in very short time. Subscribed this precious channel!
Thank you Gary, this course was extremely useful and easy to understand. There are some things which doesn't work in PHP 7.4 (like union types), but this course is amazing. As you said, the most important thing is practicing. Thank you!
Cheers Attila, I appreciate it. Yes, for PHP 7.4 you'll have to work around some things the 'old' way but I try to stick with using the latest versions for my videos
@@GaryClarkeTech I cannot wait for the full course! I like the PHP 8.1 because of more strict types, just it takes time to refactor/rewrite some things in PHP 7.4 to 8.1.
@@attilabacsoThat's cool..you now only have to wait til Tuesday! Half price to my everyone on my mailing list. Most of the course is compatible with 7.4 but I explain in the parts which aren't anyway.
@@正正-s7c Yes, lots of stuff on interfaces. Some of it covered here and more in the full course. You can see what is covered in the full course here: www.garyclarke.tech/p/learn-object-oriented-php
@@GaryClarkeTech sad..I need to translate youtube into other languages to assist my learning.. Maybe in the future you will open a member channel on youtube.. Anyway, thank you for your teaching
Great video! I would love to know where can i find videos about software architecture in a more structured way. I've watched great videos about OOP, SOLID, Design Patterns, etc... but still not knowing how to separate the layers of the app if i had to build everythin from zero. Would be even better if the examples was in php, but could be any language tho. If doesn't exists good videos about this from the basics, what book should i read?
I undestood till 1:21:00 thats bad on my part but the tutorial is great, I am a beginner and imagining an output and coding is not currently my in skillset, I am coming again after some exercises
Such a question about "const" - in JavaScript/TypesScript there is such a good practice to use "const" by default, not "let" for variable declarations. As I understand it, in PHP it is the other way around? :)
That was actually just a bunch of custom settings I created in PHPStorm. Some people complained about it being too dark so I use Material Darker these days.
Hi, Gary. Greetings. And thanks for the Tutorial. Continues to be so helpful even referential. Please, may I ask? As you know, sir, a lot of Hosting plans do not allow Subscriber Server Settings access. In these cases, access to Env Variables becomes out of the question. But the need to keep configuration settings outside the web root remains critical. Can I define my configuration settings as constants in Class file, then place the Class outside the root and still have Composer Autoload.php access it and load it as needed ? If yes, how should the "psr-4": {"app\\Config": " ../../config " }, look like?
Yes you can do that but there are still some considerations. e.g. do you really want to put sensitive config in code which is versioned? A lot of hosting solutions have secrets systems which you can use but if you really have no option than to use code then make sure it is outside of your publicly-accessible web folder. You can create a namespace mapping in the same way that you create any other.
@@GaryClarkeTech Thanks very much Gary. Please, when you say "secret systems ", can you give me an example? It will help me when interacting with the Hosting Company.
@@NedumEze Yes a a lot of companies use something called secrets which is a way of entering sensitive data which can be retrieved by your app in a similar way as what you do with environment variables
hey Gary! whats the difference between this video and the video you published here last year entitled "Learn Object Oriented PHP - 2 hour Object Oriented Programming Lesson For Beginners"? im pressed for time and trying to decide which one to watch. do you recommend watching them both?
@@GaryClarkeTech thanks Gary. where can one buy the full course? i checked your website link and there's no buy course section. is it already released?
@@andywong2244 Not released yet, I release it on Tuesday...so not long to go! Make sure you join the mailing list cos I'll be emailing a half-price coupon to my members on Tuesday morning
@@GaryClarkeTech Thanks for the response. Really enjoying the detail you are going into , I now understand private, public protected :-). Looking forward to the full course, any idea on price yet?
would love to get any ideas on what extensions for visual studio code i can try out that does something as smooth as what is displayed at 12:18 for debugging php objects.
@@GaryClarkeTech what to do in PHP 7.4 when you have both divider and currencySymbol default arguments by you just want to change only the currency one ? do you need to use both when calling the priceAsCurrency method or is there another solution ? in production is not always possible to use PHP 8, so it would be good to know how to do it. Thanks for this free course
@@maurobono5324 before php 8, args with defaults have to come after positional args that don't have defaults. If you want to change one of the agrs with a default, you also have to provide values for the others :( That's really one of the problems that named args was designed to solve
@@GaryClarkeTech I have used procedural PHP and worked with CodeIgniter and Opencart. I decided to get a good understanding of OOP and your tutorial was a great start! Thank you
Yes, I think that would be a good idea. With Laravel you'll be able to take what you've learnt and start building some cool stuff...that's what it's all about.
I won't lie I've watched a lot of php oop courses and this is the best!! Thank you king
Kind words Yasser..much appreciated and thanks for watching.
Best video series for programmers who are in middle of there career. Your most of object oriented concept will be clear after watching this series.
This course is a true gem! It's the first time I watched a 3h course and felt I really understood the concepts. Thank you so much Gary! Looking forward for the full course :)
Thanks Giulia..I'm just working on the last few videos for it and it should be released soon. I send regular updatesand previews to my mailing list subscibers.
I started learning PHP from a book in the early 2000's and I have always been intimidated by classes in PHP. I'm 45 minutes into this video and I already understand so much more than I ever have about the OOP side of PHP. I feel like this knowledge will allow me to integrate third-party APIs. I'm definitely buying the full course after I make it through this video!
Great stuff..really glad that you're enjoying it so far. Keep going..you're doing great!
Finally a course with proper teaching strategies. I cant believe the amount of online teachers who fail to understand that teacing isnt telling. Videos like yours Gary are how people escape from tutorial hell. Will be recommending your content!
I appreciate the appreciation! Thanks for watching!
I found another gem channel, this is the best OOP PHP course
Great to hear!
I gotta say a BIG BIG THANK YOU for these videos! They are so easy to understand and easy to get the hang of. No weird car explanations or anything.
Great to hear!
I never thought PHP OOP will be this easier to understand, after watching a dozen of courses on PHP OOP without any success. But you Gary have made it simpler, digestible and literally understandable. If this is just a preview of what I will learn in the full course, then you have a new course and UA-cam subscriber. Thank you for this course
Thanks very much...I appreciate the kind words. Keep going 💪
I've never found better than your course, I really understood the concepts. Thank you so much Gary !
Glad it was helpful...and thanks for watching. Keep going 💪
This course is one of the best oop course in UA-cam....
Nicely explained...
Thanks a lot..I appreciate the kind words
As always a real pleasure to learn with Gary. Awesome content. Thank you very much!
Glad you enjoy it!
hey,I'm not an english native speaker and i almost gave up on this video because your accent is too "british",(dont get offended) but eventually tried to follow along keenly and my! you actually teach so well,i grasped every tiny piece of information,thank you Gary!
This is perfect. Thank you for giving us access to this for free.
Any time!
just when I thought Yt have been flooded with tongue and head twisted bland contents, this guy appear and make high quality personalized topics a reality again!
Appreciate the kind words...more to come soon!
Best Tutorial ever, Everything is clear.
Thanks a lot..I appreciate the kind words. Keep going! 💪
Great course thank you. It really cleared up protected properties for me. For some reason I struggled to get my head around it.
Great job! Keep going Oliver
Excellent work, i was looking for a php oop course for a while now and it's very fortunate i found your amazing course, thank you! i'am looking forward to learn more from you
Glad it was helpful...thanks for watching!
Came from your older Object course. Both are amazing quality, but this is even more complete! Good to see you are staying away from your brothers spotify playlist this time. I guess he found the Beatles song🤣
Cheers Sean..much appreciated. And yes...he didn't find it funny 😂
Thank you so much Gary. I was looking for your course on udemy but can't find it. This is so timely. You remain the best PHP OOP teacher
Ah kind words..I really appreciate it. This is the first 3 hours of the full course which will be available on www.garyclarke.tech in September. I'm still working on it.
this 3 hours video is worthed. thank you so much for help us understanding PHP OOP concept. 🙏
You're very welcome..thanks for watching
Good and practical example for how to implement inheritance from 01:12:00 to 01:51:00.
But the concept of "composition over inheritance" could have been demonstrated here too. I.e. PhysicalBook and DigitalBook could both implement some interfaces and take a "Book" instance in their constructor. It's a bit more complex than just slapping inheritance onto it because you have to construct two objects now. But this in turn would be a good opportunity to talk about factories.
These topics would probably exceed the scope of this course, but they are so important in modern programming (due to the painful lessons learned from using inheritance in the last decades) that it should at least be mentioned.
Yes good points. I don't think I'd yet taught dependency injection by this point of the course but there's quite a lot of composition later in the full course.
The way you teach is fabulous. Thanks. LOVE YOU.
Wow, thank you!
Great course, thanks Gary!
Very welcome
Recommendation: Optimize the images on your website by compressing them, as their large file sizes significantly impact the site's loading speed.
This is the best course. Just what I needed to level up my WP game. Thanks, man.
No problem! Thanks for watching!
Best oop explain ! Thank you
You're welcome!
thanks for this video, been watching it for the 2nd time and i can't even feel the time goes by.
WOW! This channel is really great for the beginners who wants to understand OOP. Your examples in video are really from simple which is helpful for beginner and who want to learn in hurry (crash course?).Perfect video exactly i was looking for with challenges and extremely simple codes.. other youtubers also have good videos on php but many times examples are confusing.. your on the other hand is very simple, straightforward and enjoyable for especially who want to learn this in very short time. Subscribed this precious channel!
Thanks a lot I appreciate the kind words. I hope you enjoy the new content which is coming up!
This course is fantastic! I'm really looking forward to watching the rest of the course in September. Thanks a million Gary!
Welcome Michael!
Hi@@GaryClarkeTech. Is the full course ready?
Hey@@SridharKatakam ...I'm still working on it. I'll send an update to my mailing list this week.
Thank you Gary, this course was extremely useful and easy to understand. There are some things which doesn't work in PHP 7.4 (like union types), but this course is amazing. As you said, the most important thing is practicing. Thank you!
Cheers Attila, I appreciate it. Yes, for PHP 7.4 you'll have to work around some things the 'old' way but I try to stick with using the latest versions for my videos
@@GaryClarkeTech I cannot wait for the full course! I like the PHP 8.1 because of more strict types, just it takes time to refactor/rewrite some things in PHP 7.4 to 8.1.
@@attilabacsoThat's cool..you now only have to wait til Tuesday! Half price to my everyone on my mailing list.
Most of the course is compatible with 7.4 but I explain in the parts which aren't anyway.
@@GaryClarkeTech You can count on me, thanks!
holy damn gary, this video is straight up enlightening
Thanks a lot..I appreciate the kind words!
best course by far.
I feel like I became a hero after watching this video LOL. Thank you!
You are a hero! You'll be a super hero after you've watched the full course 😉
www.garyclarke.tech/p/learn-object-oriented-php
Thanks for the video, everything explained really well so far, hoping to buy the full course soon along with the PHP framework course
Great to hear!
I'm trying to learn PHP,
Your videos taught me so much
thank you very much
Thank you and you're welcome. Keep going..you'll get there!
@@GaryClarkeTech
Will there be teaching about Interfaces?
thanks for your reply
@@正正-s7c Yes, lots of stuff on interfaces. Some of it covered here and more in the full course. You can see what is covered in the full course here:
www.garyclarke.tech/p/learn-object-oriented-php
@@GaryClarkeTech sad..I need to translate youtube into other languages to assist my learning..
Maybe in the future you will open a member channel on youtube.. Anyway, thank you for your teaching
This course is more than perfect.
Cheers, I appreciate that!
i always get confused with php oop BUT no more with this AWESOME vid , big thanks from LIBYA :) .
That's great...thanks for watching!
Thanks for the useful video, but for the beginner level.
Hi Gary, I am from Afghanistan is really good and helped me a lot, thank you very much.
❤
Love that..keep going 💪
I love this man 👏🏾 💪🏾
Great...glad you enjoyed!
Great video! I would love to know where can i find videos about software architecture in a more structured way. I've watched great videos about OOP, SOLID, Design Patterns, etc... but still not knowing how to separate the layers of the app if i had to build everythin from zero. Would be even better if the examples was in php, but could be any language tho. If doesn't exists good videos about this from the basics, what book should i read?
I'm not sure if a dedicated book exists in PHP...if it does I'll read it myself!
Thanks for the free tutorial. You have a great way of explaining OOP. How do I get the full course. Is it only available with the September release?
Yes...unless I can finish it any quicker! I'll send regular updates to my mailing list and probably a few previews
straight to z point. lov it
I undestood till 1:21:00 thats bad on my part but the tutorial is great, I am a beginner and imagining an output and coding is not currently my in skillset, I am coming again after some exercises
You can do it!
Take 🫶 and pray for Bangladesh.
Hello Gary, maybe you can specify the PHP version which are you using. Also make you can add a section on how to install PHP for very beginners
Yes..I'm using PHP 8
Brad Traversy covers PHP installation for very beginners in this really good video:
ua-cam.com/video/BUCiSSyIGGU/v-deo.html
@@GaryClarkeTech Thank you for your work!
thank you very much. It is a resourceful tutorial.
Thanks for watching!
very good! Thanks Gary!
Such a question about "const" - in JavaScript/TypesScript there is such a good practice to use "const" by default, not "let" for variable declarations. As I understand it, in PHP it is the other way around? :)
Yes although we now have readonly properties as well
Awesome!!!
You are!
What is the color theme you are using. I like it a lot!
That was actually just a bunch of custom settings I created in PHPStorm. Some people complained about it being too dark so I use Material Darker these days.
hey, thank you for this. is the full course website still up? cant seem to open the site
Yes sorry...I was trying to update something yesterday. It's up now
Nice Explanation
Thanks and welcome
Hi, Gary.
Greetings. And thanks for the Tutorial. Continues to be so helpful even referential.
Please, may I ask?
As you know, sir, a lot of Hosting plans do not allow Subscriber Server Settings access. In these cases, access to Env Variables becomes out of the question.
But the need to keep configuration settings outside the web root remains critical.
Can I define my configuration settings as constants in Class file, then place the Class outside the root and still have Composer Autoload.php access it and load it as needed ?
If yes, how should the "psr-4": {"app\\Config": " ../../config " }, look like?
Yes you can do that but there are still some considerations. e.g. do you really want to put sensitive config in code which is versioned?
A lot of hosting solutions have secrets systems which you can use but if you really have no option than to use code then make sure it is outside of your publicly-accessible web folder. You can create a namespace mapping in the same way that you create any other.
@@GaryClarkeTech
Thanks very much Gary.
Please, when you say "secret systems ", can you give me an example? It will help me when interacting with the Hosting Company.
@@NedumEze Yes a a lot of companies use something called secrets which is a way of entering sensitive data which can be retrieved by your app in a similar way as what you do with environment variables
@@GaryClarkeTech
Okay, Gary. Thanks a lot.
I never knew that. Will pursue it.
Thanks for this video
You're welcome...thanks for watching!
👌🏾👌🏾👌🏾 Amazing!
Thank you 🙌
hey Gary! whats the difference between this video and the video you published here last year entitled "Learn Object Oriented PHP - 2 hour Object Oriented Programming Lesson For Beginners"? im pressed for time and trying to decide which one to watch. do you recommend watching them both?
Hey Andy...just stick with this one. It's more recent and better
@@GaryClarkeTech thanks Gary. where can one buy the full course? i checked your website link and there's no buy course section. is it already released?
@@andywong2244 Not released yet, I release it on Tuesday...so not long to go! Make sure you join the mailing list cos I'll be emailing a half-price coupon to my members on Tuesday morning
@@GaryClarkeTech already did. Thanks buddy. Looking forward to it.
Thank you Sir
The constructor change in php 8 that you showed at 45:42.... if you didnt make this change does the old method word in v8?
Yes..the old method will always still work, and it's actually still needed in PHP8 in a few situations that won't work for promoted properties.
@@GaryClarkeTech Thanks for the response. Really enjoying the detail you are going into , I now understand private, public protected :-). Looking forward to the full course, any idea on price yet?
would love to get any ideas on what extensions for visual studio code i can try out that does something as smooth as what is displayed at 12:18 for debugging php objects.
You can do the same in VSCode. Just put the var dump in your code then open a terminal (ctrl+shift+#) and run it.
ah ok so in other words vscode should come with PHP support OOTB? Is that what you mean?
watched in 1 go.
can i ask why you chopped off "interfaces" and "introduction to traits" parts from chapter 3?
They are still in the full course
I guess i have to update my PHP to get named agruments
Yes, Anton..they arrived in PHP 8
@@GaryClarkeTech what to do in PHP 7.4 when you have both divider and currencySymbol default arguments by you just want to change only the currency one ? do you need to use both when calling the priceAsCurrency method or is there another solution ? in production is not always possible to use PHP 8, so it would be good to know how to do it. Thanks for this free course
@@maurobono5324 before php 8, args with defaults have to come after positional args that don't have defaults. If you want to change one of the agrs with a default, you also have to provide values for the others :(
That's really one of the problems that named args was designed to solve
Great tutorial!
Glad you think so!
@@GaryClarkeTech I have used procedural PHP and worked with CodeIgniter and Opencart. I decided to get a good understanding of OOP and your tutorial was a great start! Thank you
where is dependency injection and design patterns?
Design patterns towards the end of the full course
Can I learn Laravel after I learn OOP PHP, or should I learn something else before?
Yes, I think that would be a good idea. With Laravel you'll be able to take what you've learnt and start building some cool stuff...that's what it's all about.
31:55
59:43
Is the full Course Out??
Yes the full course is here:
www.garyclarke.tech/p/learn-object-oriented-php
Sir any coupon for this course
I do coupons for my mailing list subscribers
You can join here:
www.garyclarke.tech/p/learn-object-oriented-php
"A parent should know nothing about the child" ~ Gary Clarke
🤭
👌🙂
sir a request please reduce your courses fee a bit or give coupon so we can buy it
I do regular discounts for my mailing list subscribers.
4:06
Php is mum
Skip the intro.
Thank you so much ❤🎉👍🤝👌✌️👏😎🫡🙏🏻😍🫰🏻🤘🏻🙌🏻 great course which make us to thing OOPS in real world examples 🫡
You're welcome..glad you found it useful!