PHPackages                             matteocacciola/cd-checker - 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. matteocacciola/cd-checker

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

matteocacciola/cd-checker
=========================

Circular dependency checker

1.1.1(4y ago)030.3k2MITPHPPHP &gt;=7.2

Since Aug 18Pushed 4y agoCompare

[ Source](https://github.com/matteocacciola/cd-checker)[ Packagist](https://packagist.org/packages/matteocacciola/cd-checker)[ Docs](https://github.com/selective-php/cd-checker)[ RSS](/packages/matteocacciola-cd-checker/feed)WikiDiscussions master Synced today

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

selective/cd-checker
====================

[](#selectivecd-checker)

[Circular dependency](https://en.wikipedia.org/wiki/Circular_dependency) checker for PHP.

[![Latest Version on Packagist](https://camo.githubusercontent.com/22cca7b07c0267431d7f68fb62e2971d8d5d1b9846328e2e8309870dcac27722/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f73656c6563746976652d7068702f63642d636865636b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/selective/cd-checker)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/02c9fde6aeab05fbe1473b0858f577d54a8635f31f0432f6fe5fb77e356c00b6/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f73656c6563746976652d7068702f63642d636865636b65722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/selective-php/cd-checker)[![Coverage Status](https://camo.githubusercontent.com/158b758460018ae69e49f6566e3289b57f96f7b5c13517d7a884164808d98b4d/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f73656c6563746976652d7068702f63642d636865636b65722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/selective-php/cd-checker/code-structure)[![Quality Score](https://camo.githubusercontent.com/cdbda8220706b59a16f540d0b16ed3802e38fb79fe6d745f35aacfc64c68a7bb/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f73656c6563746976652d7068702f63642d636865636b65722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/selective-php/cd-checker/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/beacb92161c569bf96ba6e5ac1dcd5360070b8e4b48fca62d9f3b57e1e776756/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73656c6563746976652f63642d636865636b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/selective/cd-checker/stats)

Features
--------

[](#features)

Detection of circular dependencies between:

- Class A and class B
- Class A and class A (self-reference)
- Scan directories recursive
- Exclude pattern
- Ability to check a single file

Requirements
------------

[](#requirements)

- PHP 7.2+

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

[](#installation)

```
composer require matteocacciola/cd-checker

```

Usage
-----

[](#usage)

Linux

```
$ vendor/bin/cd-checker {params}
```

Windows

```
> vendor\bin\cd-checker {params}
```

Parameters
----------

[](#parameters)

ShortcutNameDescription-h--helpDisplay help message.-d--directory=DIRECTORYDirectory to scan. \[default: "./"\]-f--file=filenameSingle file to scan.-x--exclude=EXCLUDEFiles and directories to exclude. You can use exclude patterns ex. tests/\*-q--quietDo not output any message.-V--versionDisplay this application version.none--ansiForce ANSI output.none--no-ansiDisable ANSI output.-n--no-interactionDo not ask any interactive question.-v -vv -vvv--verboseIncrease the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug.License
-------

[](#license)

- MIT

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.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 ~323 days

Total

4

Last Release

1486d ago

Major Versions

0.1.0 → 1.0.02019-08-18

PHP version history (2 changes)0.1.0PHP ^7.2

1.1.1PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/e5d38d38c353d06c9f3f3468d1ea12e157c774b1eba61859e2ea2904e8a4d18d?d=identicon)[matteo.cacciola](/maintainers/matteo.cacciola)

---

Top Contributors

[![odan](https://avatars.githubusercontent.com/u/781074?v=4)](https://github.com/odan "odan (8 commits)")[![matteocacciola](https://avatars.githubusercontent.com/u/28953594?v=4)](https://github.com/matteocacciola "matteocacciola (4 commits)")[![k-kaufmann](https://avatars.githubusercontent.com/u/26926826?v=4)](https://github.com/k-kaufmann "k-kaufmann (2 commits)")[![pararang](https://avatars.githubusercontent.com/u/8720184?v=4)](https://github.com/pararang "pararang (1 commits)")

---

Tags

dependencydetectordependenciescheckercircular

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/matteocacciola-cd-checker/health.svg)

```
[![Health](https://phpackages.com/badges/matteocacciola-cd-checker/health.svg)](https://phpackages.com/packages/matteocacciola-cd-checker)
```

###  Alternatives

[composer/composer

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

29.4k187.2M2.6k](/packages/composer-composer)[dephpend/dephpend

Dependency analysis for PHP

534101.9k2](/packages/dephpend-dephpend)[bamarni/composer-bin-plugin

No conflicts for your bin dependencies

52722.0M860](/packages/bamarni-composer-bin-plugin)[php-di/invoker

Generic and extensible callable invoker

26857.8M56](/packages/php-di-invoker)[shipmonk/composer-dependency-analyser

Fast detection of composer dependency issues (dead dependencies, shadow dependencies, misplaced dependencies)

6076.7M435](/packages/shipmonk-composer-dependency-analyser)[tomzx/php-semver-checker

PHP Semantic Versioning Checker

434232.8k2](/packages/tomzx-php-semver-checker)

PHPackages © 2026

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