PHP code example of pfaciana / composer-smart-autoloader
1. Go to this page and download the library: Download pfaciana/composer-smart-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/ */
pfaciana / composer-smart-autoloader example snippets
\Render\Autoload\ClassLoader::getInstance();
add_action( 'plugins_loaded', function () {
\Render\Autoload\ClassLoader::getInstance();
}, PHP_INT_MIN );
\Render\Autoload\ClassLoader::getInstance()->run();
\Render\Autoload\ClassLoader::getInstance();
\add_action( 'plugins_loaded', function () {
\Render\Autoload\ClassLoader::getInstance()->run();
}, PHP_INT_MIN );