matteocacciola/cd-checker

Circular dependency checker

1.1.1 2022-04-15 14:58 UTC

This package is auto-updated.

Last update: 2024-04-15 19:22:12 UTC


README

Circular dependency checker for PHP.

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

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

  • PHP 7.2+

Installation

composer require matteocacciola/cd-checker

Usage

Linux

$ vendor/bin/cd-checker {params}

Windows

> vendor\bin\cd-checker {params}

Parameters

Shortcut Name Description
-h --help Display help message.
-d --directory=DIRECTORY Directory to scan. [default: "./"]
-f --file=filename Single file to scan.
-x --exclude=EXCLUDE Files and directories to exclude. You can use exclude patterns ex. tests/*
-q --quiet Do not output any message.
-V --version Display this application version.
none --ansi Force ANSI output.
none --no-ansi Disable ANSI output.
-n --no-interaction Do not ask any interactive question.
-v -vv -vvv --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug.

License

  • MIT