Autoloading in PHP without and with Composer - OOP in PHP | Part 11

  Рет қаралды 18,058

The Codeholic

The Codeholic

Күн бұрын

In the following video, I explain how to autoload classes, interfaces, traits and abstract classes in PHP.
First, we will see how to register custom autoloader which will autoload everything and then we will use Composer (PHP package management tool) to autoload Classes.
Useful Links:
Install composer on ubuntu: do.co/30aZGSq
Composer getting started: bit.ly/1lVaz45
More on Autoloading: bit.ly/2y0NqIs
bit.ly/2LzTY9F
Other videos on Object-Oriented PHP
------------------------------------------------------------
Namespaces - • Everything about PHP n...
Traits - • PHP traits in depth wi...
Interfaces - • Interface in PHP for b...
Introduction to OOP in PHP - • Introduction to OOP in...
Creating classes in PHP - • Creating classes, prop...
Inheritance in PHP - • Inheritance for beginn...
Follow me on social media:
/ thecodeholic
/ thecodeholic
github.com/the...

Пікірлер: 30
@YeOldeKamikaze
@YeOldeKamikaze 4 жыл бұрын
Thank you! I've never done any packages, I've just used them. This one time I had to create a package and I did everything EXCEPT the "composer update" part (around 15:00) when testing my stuff. It threw me off so bad! Every resource I turned to assumed I knew the ins and outs of composer. Here, it's explained very clearly. Thank you again!
@ColumbianCocain
@ColumbianCocain 3 жыл бұрын
had some issue to understand the psr-4 and the namespaces concept, but you explained well )) Thanks.
@SB-kr7ki
@SB-kr7ki 4 жыл бұрын
I just finished your OOP playlist, thank you for the classes! 👏
@TheCodeholic
@TheCodeholic 4 жыл бұрын
You're welcome. Do you have any feedback? Positive or negative?
@SB-kr7ki
@SB-kr7ki 4 жыл бұрын
@@TheCodeholic Definitely positive. I enjoyed your examples and how u also referred to the official documentation plus most upvoted comments! I personally need to understand this as I want to customise my website (which is in development) that I made with Craft CMS 3 - built on top off the yii2 framework. To be able to gather/validate/save/send user data I need to create and write the code in my own plugin which I will try to write the OOP way ;). Long road to go - but your explanations got me one step closer to understanding OOP. Now I will continue with your yii2.0 video tut!
@TheCodeholic
@TheCodeholic 4 жыл бұрын
@@SB-kr7ki Great to hear that. Thank you.
@infodrop
@infodrop 2 жыл бұрын
Your video is the best one I found so far.. Clear interpretation. Good job. Keep up the good work mate.
@TheCodeholic
@TheCodeholic 2 жыл бұрын
Thanks a lot
@talehtaghi8249
@talehtaghi8249 2 жыл бұрын
Man, I always learn new stuff from your videos and they are so useful, helpful and informative. I don't know how to express my gratitude, just thank you that you record these videos, thank you for everything! You are a great man)
@Kacatkun
@Kacatkun 4 жыл бұрын
Very Well explained 👏🏻👏🏻👏🏻👏🏻👏🏻
@parva_Academy
@parva_Academy 8 ай бұрын
tnx bro . that's very helpfully ❤❤❤❤❤❤
@Hack_Trix
@Hack_Trix Жыл бұрын
i watched your 6.5 hour php tutorial in travies media. i didn't understand that CRUD autoloading part. now i do
@TheCodeholic
@TheCodeholic Жыл бұрын
Well done!
@judeleon8485
@judeleon8485 2 жыл бұрын
Though I have not seen your recent videos, the texts in these tutorial videos are just to tiny and difficult to see, and this makes it difficult to understand despite the great content. There is no denying you are good teacher
@gofuroov
@gofuroov 2 жыл бұрын
Awasome
@llBestBoyll
@llBestBoyll 2 жыл бұрын
nice tutorial 🔥
@IrfanUllahHosain
@IrfanUllahHosain 3 жыл бұрын
Amazing job. Keep it up. Just one tip try to increase the code font size for easily readability Thanks :)
@TheCodeholic
@TheCodeholic 3 жыл бұрын
Thanks... I already have good font size in my latest videos...
@NedumEze
@NedumEze 2 жыл бұрын
@Codeholic Can this spl_autoload_register() work if your Classes, & Includes, are outside your root (for security)
@ehtishamhassan8146
@ehtishamhassan8146 5 жыл бұрын
👌
@marineoutsource
@marineoutsource Жыл бұрын
I am a newbie and I do'n't understand if spl_autoloader works perfectly fine, why you need composer?
@sawseries2939
@sawseries2939 4 жыл бұрын
ขอบคุนค่ะ
@MoneylessWorld
@MoneylessWorld 3 жыл бұрын
Excellent! subbed
@TheCodeholic
@TheCodeholic 3 жыл бұрын
Thanks for the sub!
@vkcode6072
@vkcode6072 4 жыл бұрын
I wonder how the composer automatically pick our email id not sure where it picks from? can you pleae help?
@menjil
@menjil 4 жыл бұрын
is this the last part of the PHP OOP tuts already?
@TheCodeholic
@TheCodeholic 4 жыл бұрын
YES
@vangelisefthimiatos964
@vangelisefthimiatos964 3 жыл бұрын
define ( 'THE_BEST', 'ZURA' );
@bendufarmsemmanuel2278
@bendufarmsemmanuel2278 2 жыл бұрын
Your courses are great but your source codes are difficult to read because of the background color of your text editor
@TheCodeholic
@TheCodeholic 2 жыл бұрын
That videos are old. I think I improved video quality. Check my latest videos.
Build Shopping Cart with OOP | PHP OOP Project
37:53
The Codeholic
Рет қаралды 50 М.
Everything about PHP namespaces - OOP in PHP | Part 10
16:26
The Codeholic
Рет қаралды 16 М.
Girl, dig gently, or it will leak out soon.#funny #cute #comedy
00:17
Funny daughter's daily life
Рет қаралды 38 МЛН
Minecraft Creeper Family is back! #minecraft #funny #memes
00:26
PHP Autoload and Namespaces [Extended Guide] | [2020]
29:30
TechnoTrax
Рет қаралды 14 М.
Use Composer to Easily Manage PHP Packages
15:40
Dave Hollingworth
Рет қаралды 5 М.
5 Tips For Object-Oriented Programming Done Well - In Python
16:08
PHP For Beginners, Ep 30 - Autoloading and Extraction
19:37
Laracasts
Рет қаралды 15 М.
Composer autoload complete guide for beginners [ Updated 2022 ]
21:41
Interface in PHP for beginners with Examples - OOP in PHP | Part 8
20:39
JAVA DTO Pattern Tutorial | Simplify Your Code
19:12
Amigoscode
Рет қаралды 204 М.
How to automatically load PHP classes using spl_autoload_register.
9:30
Girl, dig gently, or it will leak out soon.#funny #cute #comedy
00:17
Funny daughter's daily life
Рет қаралды 38 МЛН