Answer the question
In order to leave comments, you need to log in
What to use Autoload or require or namespace?
Explain looking at various frameworks, I can’t figure out why to use require if there is a namespace. There is also autoload. Tell me, the appearance of namespace did not solve the require problem? Just as far as I understood from PSR, require and namespace are not used in one file. Why else is autoload used in various frameworks?
Answer the question
In order to leave comments, you need to log in
Tell me, the appearance of namespace did not solve the require problem?
require 'vendor/autoloader.php';
$config = include 'config.php';
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question