PHPackages                             varunsridharan/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. varunsridharan/php-classmap-generator

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

varunsridharan/php-classmap-generator
=====================================

Lightweight PHP Classmap Generator

1.2.2(5y ago)23302GPL-3.0-or-laterPHP

Since Oct 2Pushed 5y ago1 watchersCompare

[ Source](https://github.com/varunsridharan/php-classmap-generator)[ Packagist](https://packagist.org/packages/varunsridharan/php-classmap-generator)[ Fund](https://paypal.me/varunsridharan23)[ GitHub Sponsors](https://github.com/varunsridharan)[ RSS](/packages/varunsridharan-php-classmap-generator/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (2)

PHP Classmap Generator
======================

[](#php-classmap-generator)

Simple &amp; Lightweight PHP Classmap Generator

[![Latest Stable Version](https://camo.githubusercontent.com/44e2cab8f703cd90deb723c18d22082560de003af8df25e2416bd455e77323f5/68747470733a2f2f706f7365722e707567782e6f72672f766172756e73726964686172616e2f7068702d636c6173736d61702d67656e657261746f722f76657273696f6e)](https://packagist.org/packages/varunsridharan/php-classmap-generator)[![Latest Unstable Version](https://camo.githubusercontent.com/714fd7517cb65361411209d2e3ee81457e29aa7fb8326b7c929774636add8681/68747470733a2f2f706f7365722e707567782e6f72672f766172756e73726964686172616e2f7068702d636c6173736d61702d67656e657261746f722f762f756e737461626c65)](https://packagist.org/packages/varunsridharan/php-classmap-generator)[![Total Downloads](https://camo.githubusercontent.com/53d91a5ab157f12cb4047f837ee5e1564b19d4d03c9972683eabc2dad73d7d0c/68747470733a2f2f706f7365722e707567782e6f72672f766172756e73726964686172616e2f7068702d636c6173736d61702d67656e657261746f722f646f776e6c6f616473)](https://packagist.org/packages/varunsridharan/php-classmap-generator)[![License](https://camo.githubusercontent.com/1dcfbbaca7a1c510c91b246295d79dca54d17d8de197d94095a1eff9579dd5a4/68747470733a2f2f706f7365722e707567782e6f72672f766172756e73726964686172616e2f7068702d636c6173736d61702d67656e657261746f722f6c6963656e7365)](https://packagist.org/packages/varunsridharan/php-classmap-generator)[![composer.lock available](https://camo.githubusercontent.com/9c12427d2fe2ef9e2673b9a3f19439d9927fb60513492b55ffcbbde8013b04a6/68747470733a2f2f706f7365722e707567782e6f72672f766172756e73726964686172616e2f7068702d636c6173736d61702d67656e657261746f722f636f6d706f7365726c6f636b)](https://packagist.org/packages/varunsridharan/php-classmap-generator)

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

[](#installation)

The preferred way to install this extension is through [Composer](http://getcomposer.org/download/).

To install **PHP\_Classmap\_Generator library**, simply:

```
$ composer require varunsridharan/php-classmap-generator

```

The previous command will only install the necessary files, if you prefer to **download the entire source code** you can use:

```
$ composer require varunsridharan/php-classmap-generator --prefer-source

```

You can also **clone the complete repository** with Git:

```
$ git clone https://github.com/varunsridharan/php-classmap-generator.git

```

Or **install it manually**:

[Download PHP\_Classmap\_Generator.zip](https://github.com/varunsridharan/php-classmap-generator/archive/master.zip):

```
$ wget https://github.com/varunsridharan/php-classmap-generator/archive/master.zip

```

Usage
-----

[](#usage)

### Config Arguments

[](#config-arguments)

KeyDescriptionnamespaceWhich name space to search for. leave empty to get all classessourcestring / array of places to search for php classesoutputLocation &amp; File type to save classmap dataexcludedNamespace / File Paths to excludefullpathset true to provide full path### CMD Line

[](#cmd-line)

```
/**
 * Arguments Order.
 * 1. PHP Class Source
 * 2. PHP Classmap File Output
 * 3. Namespace (Leave Empty To Get All)
 * 4. exclude_namespace
 * 5. exclude_path
 * 6. fullpath
 */
composer classmap-generator "your-path-to-php-class" "class-map-output/files.php"

```

Sample Outputs
--------------

[](#sample-outputs)

### PHP

[](#php)

```
