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

Abandoned → [composer/class-map-generator](/?search=composer%2Fclass-map-generator)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

soyhuce/classmap-generator
==========================

A simple classmap generator extracted from composer

1.1.0(2y ago)019.5k—0%MITPHPPHP ^8.2CI passing

Since Mar 2Pushed 1y ago2 watchersCompare

[ Source](https://github.com/Soyhuce/classmap-generator)[ Packagist](https://packagist.org/packages/soyhuce/classmap-generator)[ Docs](https://github.com/soyhuce/classmap-generator)[ GitHub Sponsors](https://github.com/soyhuce)[ RSS](/packages/soyhuce-classmap-generator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (5)Used By (0)

A simple classmap generator extracted from composer
===================================================

[](#a-simple-classmap-generator-extracted-from-composer)

[![Latest Version on Packagist](https://camo.githubusercontent.com/163313ee98bbb337dbf312a808d391876f8eae1c7a596060458587f8a4073de0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736f79687563652f636c6173736d61702d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/soyhuce/classmap-generator)[![Tests](https://github.com/soyhuce/classmap-generator/actions/workflows/run-tests.yml/badge.svg?branch=main)](https://github.com/soyhuce/classmap-generator/actions/workflows/run-tests.yml)[![Total Downloads](https://camo.githubusercontent.com/7aa611989ce2358996fc7478d38aeb53ab464b28ab42c52215a3467e7ae00e4f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f736f79687563652f636c6173736d61702d67656e657261746f722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/soyhuce/classmap-generator)

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',
// ]
```

> This package is abandoned. We recommend using composer/class-map-generator in replacement

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

[](#installation)

You can install the package via composer:

```
composer require soyhuce/classmap-generator
```

Usage
-----

[](#usage)

```
\Soyhuce\ClassMapGenerator\ClassMapGenerator::createMap($path);
```

It will generate the classmap for the given path.

The classmap is identical to the one generated by composer.

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

All credit should go to [Composer](https://getcomposer.org/), this package is just an extraction of the ClassmapGenerator class from Composer.

- [composer/composer](https://github.com/composer/composer)
- [Bastien Philippe](https://github.com/bastien-phi)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 52.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~715 days

Total

2

Last Release

822d ago

PHP version history (2 changes)1.0.0PHP ^8.0

1.1.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/206cfbf866a463f7e7d1e86946d59b82f4191b9c89f9981fb03eeb264d77af79?d=identicon)[SoyHuCe](/maintainers/SoyHuCe)

---

Top Contributors

[![bastien-phi](https://avatars.githubusercontent.com/u/10199039?v=4)](https://github.com/bastien-phi "bastien-phi (21 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (10 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (9 commits)")

---

Tags

soyhuceclassmap-generator

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/soyhuce-classmap-generator/health.svg)

```
[![Health](https://phpackages.com/badges/soyhuce-classmap-generator/health.svg)](https://phpackages.com/packages/soyhuce-classmap-generator)
```

###  Alternatives

[wnx/laravel-stats

Get insights about your Laravel Project

1.8k1.8M7](/packages/wnx-laravel-stats)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[coenjacobs/mozart

Composes all dependencies as a package inside a WordPress plugin

4723.6M20](/packages/coenjacobs-mozart)[illuminate/session

The Illuminate Session package.

9937.4M753](/packages/illuminate-session)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

96374.6k23](/packages/friendsoftypo3-content-blocks)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

52664.9k12](/packages/solspace-craft-freeform)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
