PHP code example of afragen / autoloader
1. Go to this page and download the library: Download afragen/autoloader 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/ */
afragen / autoloader example snippets
$root = [ 'My_Namespace' => 'path/to/my-namespace' ];
$classmap = [
'Extra_Class' => 'path/to/extra-class.php',
'AnotherClass' => 'path/to/class-another.php',
];