Generates classmap without composer.
\Soyhuce\ClassMapGenerator\ClassMapGenerator::createMap(__DIR__ . '/src');
// [
// 'Soyhuce\\ClassmapGenerator\\ClassmapGenerator' => '/code/soyhuce/classmap-generator/src/ClassmapGenerator.php',
// 'Soyhuce\\ClassmapGenerator\\PhpFileCleaner' => '/code/soyhuce/classmap-generator/src/PhpFileCleaner.php',
// 'Soyhuce\\ClassmapGenerator\\Util\\Silencer' => '/code/soyhuce/classmap-generator/src/Util/Silencer.php',
// 'Soyhuce\\ClassmapGenerator\\Util\\Filesystem' => '/code/soyhuce/classmap-generator/src/Util/Filesystem.php',
// 'Soyhuce\\ClassmapGenerator\\Util\\Platform' => '/code/soyhuce/classmap-generator/src/Util/Platform.php',
// 'Soyhuce\\ClassmapGenerator\\Pcre\\Preg' => '/code/soyhuce/classmap-generator/src/Pcre/Preg.php',
// 'Soyhuce\\ClassmapGenerator\\Pcre\\PcreException' => '/code/soyhuce/classmap-generator/src/Pcre/PcreException.php',
// ]
You can install the package via composer:
composer require soyhuce/classmap-generator
\Soyhuce\ClassMapGenerator\ClassMapGenerator::createMap($path);
It will generate the classmap for the given path.
The classmap is identical to the one generated by composer.
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
All credit should go to Composer, this package is just an extraction of the ClassmapGenerator class from Composer.
The MIT License (MIT). Please see License File for more information.