jayfrancis / composer-local-loader
Composer Local Loader
dev-master
2013-07-31 10:41 UTC
Requires
- php: >=5.2.0
This package is not auto-updated.
Last update: 2024-11-19 04:37:08 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);