From what I understand require
is used to load large chunks of code (something like modules) although it can also load individual functions.
Autoload on the other side, only registers functions and defers the loading to execution time.
I've recently read an article which advocates the usage of autoload
exclusively.
Is it better to autoload
than to require
? What are some typical use cases for each of these?