PHP code example of joefallon / phpautoloader
1. Go to this page and download the library: Download joefallon/phpautoloader 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/ */
joefallon / phpautoloader example snippets
use JoeFallon\AutoLoader;
// Define the include paths.
define('BASE_PATH', realpath(dirname(__FILE__) . '/../'));
define('LIB_PATH', BASE_PATH . '/lib');
define('VEND_PATH', BASE_PATH . '/vendor');
// Set the application include paths for auto-loading.
set_include_path(get_include_path() . ':' . LIB_PATH . ':' . BASE_PATH);
// Require the Composer autoloader. Composer will handle its own class auto-loading
// using its own autoloader.