PHP code example of iziphp / autoloader
1. Go to this page and download the library: Download iziphp/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/ */
iziphp / autoloader example snippets
// Instantiate the loader
$loader = new \Easy\Autoloader\Autoloader();
// Add namespaces to autoload
$loader->appendNamespace("Components", "components"); # Root source
$loader->prependNamespace(null, "src"); # Root source
// Register the autoloader
$loader->register();