Answer the question
In order to leave comments, you need to log in
How to use PHP composer class autoload?
composer began to study recently, however, like PHP , and in the course a question arose:
there is a pagination class ( Zebra_Pagination ), in composer.json of which there is
"autoload": {
"psr-0": { "Zebra_Pagination": "" }
}
'Zebra_Pagination' => array($vendorDir . '/stefangabos/zebra_pagination'),
$pagination = new Zebra_Pagination();
$pagination = new \Zebra_Pagination();
require __DIR__ . '/../vendor/autoload.php';
, of course, is present ... Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question