September 2017
Intermediate to advanced
244 pages
6h 44m
English
As you have seen, there is auto-loading related information available in the composer.json file because Composer is also responsible for auto-loading. In fact, even without that auto-load property specified, Composer can be used to auto-load files.
Previously, we were using require or include to load every file separately. You don't need to require or include each and every file separately. You just need to require or include one file, that is ./vendor/autoload.php. This vendor directory is Composer's vendor directory, where all packages are placed. So, this autoload.php file will auto-load everything without worrying about including all files with their dependencies in order.
Read now
Unlock full access