2017 © Pedro Peláez
 

library autoloader

PSR-0 and PSR-4 Style Autoloaders

image

corpus/autoloader

PSR-0 and PSR-4 Style Autoloaders

  • Wednesday, December 6, 2017
  • by donatj
  • Repository
  • 1 Watchers
  • 0 Stars
  • 104 Installations
  • PHP
  • 0 Dependents
  • 2 Suggesters
  • 2 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Autoloader

Latest Stable Version License Build Status Scrutinizer Code Quality, (*1)

Simple PSR-0 and PSR-4 Style Autoloaders., (*2)

Notes

The PSR-0 Autoloader does not include the Zend style underscore to / translation., (*3)

Installing

Autoloader is available through Packagist via Composer, (*4)

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

Usage

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

The Versions

06/12 2017

dev-master

9999999-dev

PSR-0 and PSR-4 Style Autoloaders

  Sources   Download

MIT

The Development Requires

14/04 2014

v1.0.0

1.0.0.0

PSR-0 and PSR-4 Style Autoloaders

  Sources   Download

MIT