iziphp / autoloader
Skeleton to create a composer library
v1.0.0
2023-06-26 09:23 UTC
Requires
- php: ^8.2
Requires (Dev)
- phpcompatibility/php-compatibility: ^9.3
- phpmd/phpmd: ^2.13
- phpstan/phpstan: ^1.8
- phpunit/phpunit: ^9.5
- squizlabs/php_codesniffer: ^3.7
README
PSR-4 compatible Autoloader. This is the updated version of the example autoloader from the PSR-4 specification.
Installation
composer require iziphp/autoloader
Usage
// Instantiate the loader $loader = new \Easy\Autoloader\Autoloader(); // Add namespaces to autoload $loader->appendNamespace("Components", "components"); # Root source $loader->prependNamespace(null, "src"); # Root source // Register the autoloader $loader->register();