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: https://do.co/30aZGSq
Composer getting started: https://bit.ly/1lVaz45
More on Autoloading: https://bit.ly/2y0NqIs
https://bit.ly/2LzTY9F
Other videos on Object-Oriented PHP
------------------------------------------------------------
Namespaces - • Everything about PHP namespaces - OOP...
Traits - • PHP traits in depth with examples - O...
Interfaces - • Interface in PHP for beginners with E...
Introduction to OOP in PHP - • Introduction to OOP in PHP - What is ...
Creating classes in PHP - • Creating classes, properties, methods...
Inheritance in PHP - • Inheritance for beginners - OOP in PH...
Follow me on social media:
/ thecodeholic
/ thecodeholic
https://github.com/thecodeholic