iziphp / autoloader
Skeleton to create a composer library
Installs: 913
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
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();