PHP code example of irap / autoloader
1. Go to this page and download the library: Download irap/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/ */
irap / autoloader example snippets
ssFolders = array(
__DIR__ . '/controllers',
__DIR__ . '/libs',
__DIR__ . '/views/*',
__DIR__ . '/middleware',
__DIR__ . '/models/',
);
// Optional attribute for strict autoloading (case sensitive), defaults to false
iRAP\Autoloader\Autoloader::$strict = true;
$autoloader = new iRAP\Autoloader\Autoloader($classFolders);