The script bin/classmap_generator.php can be used to generate class map files for use with the ClassMapAutoloader.
Internally, it consumes both Zend\Console\Getopt (for parsing command-line options) and Zend\File\ClassFileLocator for recursively finding all PHP class files in a given tree.
You may run the script over any directory containing source code. By default, it will look in the current directory, and will write the script to autoloader_classmap.php in the directory you specify.
1 | php classmap_generator.php Some/Directory/
|
Class Map Generator Options
The source code of this file is hosted on GitHub. Everyone can update and fix errors in this document with few clicks - no downloads needed.