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

Поділитися
Вставка
  • Опубліковано 18 вер 2024
  • 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 роки тому +2

    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 роки тому +4

    had some issue to understand the psr-4 and the namespaces concept, but you explained well ))
    Thanks.

  • @SB-kr7ki
    @SB-kr7ki 4 роки тому +3

    I just finished your OOP playlist, thank you for the classes! 👏

    • @TheCodeholic
      @TheCodeholic  4 роки тому +1

      You're welcome.
      Do you have any feedback? Positive or negative?

    • @SB-kr7ki
      @SB-kr7ki 4 роки тому +2

      @@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 роки тому +3

      @@SB-kr7ki Great to hear that. Thank you.

  • @infodrop
    @infodrop 2 роки тому +1

    Your video is the best one I found so far.. Clear interpretation. Good job. Keep up the good work mate.

  • @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 роки тому +2

    Very Well explained 👏🏻👏🏻👏🏻👏🏻👏🏻

  • @parva_Academy
    @parva_Academy 8 місяців тому +1

    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

  • @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 роки тому +1

      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 років тому +1

    👌

  • @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

  • @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?

  • @vangelisefthimiatos964
    @vangelisefthimiatos964 3 роки тому +1

    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.