jayfrancis/composer-local-loader

dev-master 2013-07-31 10:41 UTC

This package is not auto-updated.

Last update: 2024-11-05 04:32:31 UTC


README

Override composers standard autoloading to use a local repo but fail-over to the vendor directory.

To use simply add the following to your composer.json file: //todo

Then modify the bootstrap process in your application as follows:

/** @var \Composer\Autoload\ClassLoader $composerLoader */
$composerLoader = require dirname(__DIR__) . '/vendor/autoload.php';

/**
 * Wrap this in a conditional for certain environments, i.e. development
 */
$composerLoader = ComposerLocalLoader::addLocalPaths($composerLoader);