symbiotic / autoloader
Symbiotic PSR-4 Autoloader for specific directories.
Installs: 44
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/symbiotic/autoloader
This package is auto-updated.
Last update: 2025-10-14 19:05:37 UTC
README
Usage
// Include Autoloader file include_once $basePath.'/vendor/symbiotic/autoloader/src/Autoload/Autoloader.php'; $autoloaderConfig = [ // Put the autoloader at the beginning of the queue 'prepend' => false, // Directories for searching packages 'scan_dirs' => [ $basePath.'/modules', $basePath.'/plugins' ], // Directory for saving class maps 'storage_path' => $basePath.'/protectedDir/' ]; Autoloader::register( $autoloaderConfig['prepend'] ?? false, $autoloaderConfig['scan_dirs'], $autoloaderConfig['storage_path'] );