Skip to content

Simple to use psr-4 compatible autoloader for PHP classes.

Notifications You must be signed in to change notification settings

Saso/autoloader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple to use psr-4 compatible autoloader for PHP classes.

Instalation

Add this to your compose.json:

"require": {
    "Saso/autoloader": "dev-master"
},

"repositories": [
    {
        "type": "vcs",
        "url":  "[email protected]:Saso/autoloader.git"
    }
]

and install in command line:

composer install --no-autoloader

.. or, just clone this repo and check the code.

Usage:

in bootstrap add lines:

$autoloader = new Autoloader();
$autoloader->registerNamespace( '\My\Namespace\And\Class', $Path );

Replace Namespace and Path with the actual ones. Register as many namespaces, as you want.

Autoloader is safe for overlaping paths.

About

Simple to use psr-4 compatible autoloader for PHP classes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published