1. Go to this page and download the library: Download aura/autoload library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
aura / autoload example snippets
// instantiate
$loader = new \Aura\Autoload\Loader;
// append to the SPL autoloader stack; use register(true) to prepend instead
$loader->register();
// set the wrong path for Foo\Bar classes
$loader->addPrefix('Foo\Bar', '/wrong/path/to/foo-bar/src');
// this will fail
$baz = new \Foo\Bar\Baz;
// examine the debug information
var_dump($loader->getDebug());
// array(
// 'Loading Foo\\Bar\\Baz',
// 'No explicit class file',
// 'Foo\\Bar\\: /path/to/foo-bar/Baz.php not found',
// 'Foo\\: no base dirs',
// 'Foo\\Bar\\Baz not loaded',
// )
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.