PHP code example of broneq / autoloader
1. Go to this page and download the library: Download broneq/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/ */
broneq / autoloader example snippets
$autoloader = new \Broneq\Autoloader\Loader();
$autoloader->registerNamespace('App', __DIR__.'/app');
$autoloader->registerNamespace('SomeOtherNameSpace', __DIR__.'/otherdir');
$autoloader->register();
$autoloader = new \Broneq\Autoloader\Loader();
$autoloader->registerFile('__DIR__.'/path/to/some_functions.php');