This package is abandoned and no longer maintained. No replacement package was suggested.

PSR-0 and PSR-4 Style Autoloaders

v1.0.0 2014-04-14 18:30 UTC

This package is auto-updated.

Last update: 2022-12-06 05:07:24 UTC


Latest Stable Version License Build Status Scrutinizer Code Quality

Simple PSR-0 and PSR-4 Style Autoloaders.


The PSR-0 Autoloader does not include the Zend style underscore to / translation.


Autoloader is available through Packagist via Composer

    "require": {
        "corpus/autoloader": "1.*"


These are simple autoloaders, that operate on the SPL autoloader stack order. You use one instance per directory or namespace.


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') );