Let's use php autoloader and how PHP use namespaces in this mini php namespaces tutorial. We will see how to include files automatically in a project, and also how namespaces can allow us to have multiple classes with same name, and how autoloading can figure out where to find our files.
Interested in learning real-life PHP design patterns?
➡️ https://www.ApplicableProgramming.com/
If you are interested in programming courses related to web, please visit https://www.applicableprogramming.com/ to view courses where we show the problem, then we try to solve it the hard way, and then we show how we can benefit from proven solutions.
➤ LINKS
➡️ Source on github: https://github.com/applicable-program...
(use tags to navigate between lessons)
➡️ https://getcomposer.org/ package manager
➡️ Private "Applicable Programmers" facebook group / applicableprogrammers
➡️ Discord server / discord
➡️ Other tutorials: www.ApplicableProgramming.com
Timestamps:
Intro (00:00)
CMS page edit (00:45)
Namespaces - explanation (17:49)
Namespaces - practical solution (22:47)
Homework (31:25)
Summary (33:33)