Autoloading is a way to automatically include class files of a project in your code. It only takes two steps to create an autoloader. The code is able to instantiate a class named without first having required its PHP file. As a result, the class's PHP file is automatically loaded.
Table of contents
What is autoloading?PHP autoloading 101What are PHP namespaces?What problems do namespaces solve?The use keywordPSR-4: The standard for PHP autoloading and namespacesHow does PSR-4 work?Composer and autoloadingPSR makes PHP betterSort: