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

Поделиться
HTML-код
  • Опубликовано: 2 окт 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!

  • @parva_Academy
    @parva_Academy 9 месяцев назад +1

    tnx bro . that's very helpfully ❤❤❤❤❤❤

  • @ColumbianCocain
    @ColumbianCocain 3 года назад +4

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

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

  • @marineoutsource
    @marineoutsource Год назад

    I am a newbie and I do'n't understand if spl_autoloader works perfectly fine, why you need composer?

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

  • @Kacatkun
    @Kacatkun 4 года назад +2

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

  • @vangelisefthimiatos964
    @vangelisefthimiatos964 3 года назад +1

    define ( 'THE_BEST', 'ZURA' );

  • @NedumEze
    @NedumEze 2 года назад

    @Codeholic
    Can this spl_autoload_register() work if your Classes, & Includes, are outside your root (for security)

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

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

  • @llBestBoyll
    @llBestBoyll 2 года назад

    nice tutorial 🔥

  • @infodrop
    @infodrop 2 года назад +1

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

  • @gofuroov
    @gofuroov 2 года назад

    Awasome

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

  • @vkcode6072
    @vkcode6072 4 года назад

    I wonder how the composer automatically pick our email id not sure where it picks from? can you pleae help?

  • @ehtishamhassan8146
    @ehtishamhassan8146 5 лет назад +1

    👌

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

  • @sawseries2939
    @sawseries2939 4 года назад

    ขอบคุนค่ะ

  • @menjil
    @menjil 4 года назад

    is this the last part of the PHP OOP tuts already?

  • @MoneylessWorld
    @MoneylessWorld 3 года назад

    Excellent!
    subbed