dev-master
9999999-devPSR-0 and PSR-4 Style Autoloaders
MIT
The Development Requires
by Jesse Donat
PSR-0 and PSR-4 Style Autoloaders
Simple PSR-0 and PSR-4 Style Autoloaders., (*2)
The PSR-0 Autoloader does not include the Zend style underscore to / translation., (*3)
Autoloader is available through Packagist via Composer, (*4)
{ "require": { "corpus/autoloader": "1.*" } }
These are simple autoloaders, that operate on the SPL autoloader stack order. You use one instance per directory or namespace., (*5)
<?php use Corpus\Autoloader\Psr0; use Corpus\Autoloader\Psr4; // PSR-0 Autoloader spl_autoload_register( new Psr0('/vendor/path/blah') ); // PSR-4 Autoloader spl_autoload_register( new Psr4('My\\Prefix', '/vendor/path/blah') );
PSR-0 and PSR-4 Style Autoloaders
MIT