PHPackages                             silverorange/ambiguous-class-name-detector - 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. silverorange/ambiguous-class-name-detector

ActiveLibrary

silverorange/ambiguous-class-name-detector
==========================================

Command-line tool to check for ambiguous class names with Composer's generated class map.

1.0.1(2y ago)05.4k3MITPHPPHP &gt;=7.1.0CI failing

Since Aug 26Pushed 2y ago16 watchersCompare

[ Source](https://github.com/silverorange/ambiguous-class-name-detector)[ Packagist](https://packagist.org/packages/silverorange/ambiguous-class-name-detector)[ Docs](https://github.com/silverorange/ambiguous-class-name-detector)[ RSS](/packages/silverorange-ambiguous-class-name-detector/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (3)Used By (0)

Ambiguous Class Name Detector
=============================

[](#ambiguous-class-name-detector)

Command-line tool to detect ambiguous class names when using the class map autoload mechanism with Composer.

This tool is intended to be used in a CI environment and should fail if ambiguous class names are introduced in a project.

Development
-----------

[](#development)

This tool uses [composer](https://getcomposer.org/). To test during development, make sure you have the required packages installed by running `composer install`.

You can run the tool using `./bin/check-for-ambiguous-class-names`.

This project uses prettier for automatic code formatting. To format files in the `src/` directory, run `yarn install` and then `yarn make-pretty`.

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

[](#installation)

Add to your project's development dependencies with:

```
composer require --dev silverorange/ambiguous-class-name-detector
```

Then add `composer run check-for-ambiguous-class-names` to your CI pipeline. If ambiguous class names are detected, the command will exit with a non-zero value and report the ambiguous class names.

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.3% 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 ~1718 days

Total

2

Last Release

731d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9106d3aa95caf8d17dde19a665e2110aad639d24ef85f152e0afcf6f3b49c111?d=identicon)[gauthierm](/maintainers/gauthierm)

---

Top Contributors

[![gauthierm](https://avatars.githubusercontent.com/u/120511?v=4)](https://github.com/gauthierm "gauthierm (12 commits)")[![pparke](https://avatars.githubusercontent.com/u/5822990?v=4)](https://github.com/pparke "pparke (1 commits)")

---

Tags

classmapcomposerambiguous

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/silverorange-ambiguous-class-name-detector/health.svg)

```
[![Health](https://phpackages.com/badges/silverorange-ambiguous-class-name-detector/health.svg)](https://phpackages.com/packages/silverorange-ambiguous-class-name-detector)
```

###  Alternatives

[jean85/pretty-package-versions

A library to get pretty versions strings of installed dependencies

1.3k289.5M63](/packages/jean85-pretty-package-versions)[dealerdirect/phpcodesniffer-composer-installer

PHP\_CodeSniffer Standards Composer Installer Plugin

596161.9M1.9k](/packages/dealerdirect-phpcodesniffer-composer-installer)[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k37.3M2.1k](/packages/ergebnis-composer-normalize)[bamarni/composer-bin-plugin

No conflicts for your bin dependencies

52722.0M860](/packages/bamarni-composer-bin-plugin)[composer/class-map-generator

Utilities to scan PHP code and generate class maps.

197122.6M108](/packages/composer-class-map-generator)[composer/metadata-minifier

Small utility library that handles metadata minification and expansion.

181115.0M13](/packages/composer-metadata-minifier)

PHPackages © 2026

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