定制 pardovimes/serra 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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-scan if file is not passed it scans all files from folder. src/ by default.
  • domain-folder-name Domain layer name. Domain by default.
  • application-folder-name Application layer name. Application by default.
  • domain-valid-uses Array of packages that will ignore if found on domain layer. empty array by default
  • application-valid-uses Array 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

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2022-02-09