PHPackages                             michaeluno/php-classmap-generator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. michaeluno/php-classmap-generator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

michaeluno/php-classmap-generator
=================================

A PHP class that generates class maps for autoload.

1.3.1(4y ago)039112MITPHPPHP &gt;=5.6.20

Since Jan 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/michaeluno/php-classmap-generator)[ Packagist](https://packagist.org/packages/michaeluno/php-classmap-generator)[ RSS](/packages/michaeluno-php-classmap-generator/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (11)Used By (2)

PHP Class Map Generator
=======================

[](#php-class-map-generator)

A PHP class that generates class maps for autoload.

Installation
------------

[](#installation)

### Composer

[](#composer)

To install the library using Composer, run

```
composer require michaeluno/php-classmap-generator
```

Usage
-----

[](#usage)

Instantiate the class with options.

```
new \PHPClassMapGenerator\PHPClassMapGenerator(
    __DIR__,                        // base dir
    __DIR__ . '/_scandir',          // scan dir path
    __DIR__ . '/class-map.php',     // the result output file
);
```

This creates a class map file looking like a following.

```
