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.6k↓68.8%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 today

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

36

—

LowBetter than 79% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity65

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

868d ago

PHP version history (2 changes)1.0.0PHP ^8.0

1.1.0PHP ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19587451?v=4)[SoyHuCe](/maintainers/SoyHuCe)[@Soyhuce](https://github.com/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

[composer/composer

Composer helps you declare, manage and install dependencies of PHP projects. It ensures you have the right stack everywhere.

29.5k196.2M3.1k](/packages/composer-composer)[friendsofphp/php-cs-fixer

A tool to automatically fix PHP code style

13.5k251.2M25.2k](/packages/friendsofphp-php-cs-fixer)[symfony/stimulus-bundle

Integration with your Symfony app &amp; Stimulus!

17417.5M295](/packages/symfony-stimulus-bundle)[illuminate/session

The Illuminate Session package.

9939.3M850](/packages/illuminate-session)[friendsoftypo3/content-blocks

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

103519.9k53](/packages/friendsoftypo3-content-blocks)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)

PHPackages © 2026

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