asar/classloader

There is no license information available for the latest version (dev-master) of this package.

Modified PSR-0 ClassLoader

dev-master 2012-05-18 06:41 UTC

This package is not auto-updated.

Last update: 2024-04-27 12:17:49 UTC


README

AsarClassLoader is a slightly modified version of the SplClassLoader.

The modification now allows for loading single classes (e.g. Pimple.php). This class loader was created to prevent conflicts when using the original SplClassLoader.

Usage:

$classLoader = new \Asar\ClassLoader('Doctrine\Common', '/path/to/doctrine');
$classLoader->register();
$classLoader = new \Asar\ClassLoader('Pimple', '/path/to/pimple');
$classLoader->register();