pardovimes/serra
最新稳定版本:1.0.1
Composer 安装命令:
composer require pardovimes/serra
包简介
A Script to check if there is Domain-Driven Design layer leaks
README 文档
README
Serra is a script that check if there are Domain-driven design layer leaks.
The name of this repository is inspired by serra angel
Installation
Install with composer:
$ composer require pardovimes/serra
Usage
php <path to serra file> [-f <file>] [-c <config.json>]
Example
php vendor/bin/serra
Options
-f <file>execute script only for this file-c <json.file>execute script with this configuration
Configuration options
Example
{
"folder-to-scan": "src/",
"domain-folder-name": "Domain",
"application-folder-name": "Application",
"domain-valid-uses": [
"Webmozart\\Assert\\Assert"
],
"application-valid-uses": [
"Webmozart\\Assert\\Assert"
]
}
Options
folder-to-scanif file is not passed it scans all files from folder.src/by default.domain-folder-nameDomain layer name.Domainby default.application-folder-nameApplication layer name.Applicationby default.domain-valid-usesArray of packages that will ignore if found on domain layer. empty array by defaultapplication-valid-usesArray of packages that will ignore if found on application layer. empty array by default
License
Composer is licensed under the GNU GPLv3 License - see the LICENSE file for details.
统计信息
- 总下载量: 4.4k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2022-02-09