feip/php-cycdep-finder
Composer 安装命令:
composer require feip/php-cycdep-finder
包简介
Package to find cyclic dependencies in classes, files, directories and packages in PHP projects
README 文档
README
Requirements
- PHP >=8.2
- Composer v2
Installation
composer require --dev feip/php-cycdep-finder
Usage
vendor/bin/cycdep <directories, .php or composer.json files> [options]
Options:
-q— quiet mode (no output)-vv— verbose: show PHP ASTs and dependency tree--ignore-namespace=<pattern>— ignore cycles where all members match the pattern (can be repeated)
Examples
# Check the app/ directory
vendor/bin/cycdep app/
# Ignore Model <-> Factory mutual dependencies
vendor/bin/cycdep app/ --ignore-namespace=Models --ignore-namespace=Factories
Self-references (a class referencing itself, e.g. recursive tree DTOs) are automatically excluded and do not require --ignore-namespace.
统计信息
- 总下载量: 726
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-01-15