Circular dependency checker for PHP.
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
- PHP 7.2+
composer require selective/cd-checker
Linux
$ vendor/bin/cd-checker {params}
Windows
> vendor\bin\cd-checker {params}
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. |
- MIT