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. [CLI &amp; Console](/categories/cli)
4. /
5. silverorange/ambiguous-class-name-detector

ActiveLibrary[CLI &amp; Console](/categories/cli)

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.4k3[1 PRs](https://github.com/silverorange/ambiguous-class-name-detector/pulls)MITPHPPHP &gt;=7.1.0CI failing

Since Aug 26Pushed 6d 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 2w ago

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` and `pnpm install`.

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

This project uses [PHP-CS-Fixer](https://cs.symfony.com/) and [Prettier](https://prettier.io/) for automatic code formatting. To check for formatting issues in PHP and (optionally) fix them, run:

```
composer run phpcs
composer run phpcs:fix
```

Similarly, for non-PHP files:

```
pnpm format
pnpm format:fix
```

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

41

—

FairBetter than 87% of packages

Maintenance64

Regular maintenance activity

Popularity19

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.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 ~1718 days

Total

2

Last Release

781d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/120511?v=4)[Michael Gauthier](/maintainers/gauthierm)[@gauthierm](https://github.com/gauthierm)

---

Top Contributors

[![gauthierm](https://avatars.githubusercontent.com/u/120511?v=4)](https://github.com/gauthierm "gauthierm (13 commits)")[![cviebrock](https://avatars.githubusercontent.com/u/166810?v=4)](https://github.com/cviebrock "cviebrock (3 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

[brainmaestro/composer-git-hooks

Easily manage git hooks in your composer config

1.1k9.4M494](/packages/brainmaestro-composer-git-hooks)[codedungeon/php-cli-colors

Liven up you PHP Console Apps with standard colors

10210.5M31](/packages/codedungeon-php-cli-colors)[nunomaduro/patrol

An elegant command-line tool that keeps your PHP Project's dependencies in check

275130.3k3](/packages/nunomaduro-patrol)[mwguerra/interactive-upgrader

A CLI tool that handles both Composer and npm dependencies for Laravel projects.

2115.1k](/packages/mwguerra-interactive-upgrader)

PHPackages © 2026

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