定制 denis-korchagin95/fs-control 二次开发

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

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

denis-korchagin95/fs-control

最新稳定版本:v1.2.0

Composer 安装命令:

composer require denis-korchagin95/fs-control

包简介

fs-control helps you to keep your directory tree under control.

README 文档

README

fs-control is an analyzer for your directory tree to allow you to keep it under control.

Maybe you have some agreements in your project and rules to the directory tree, but actually in real life it may not work on 100%. This tool can allow you to define your variant of configuration and help you to fix that and control.

If your mindset changes about the directory tree, okay, it's cool. Just edit configuration and fs-control will care about for you. Also set you free from some "review battles" and allow you to concentrate on more important things.

Getting started

You can install fs-control via Composer using the main composer.json:

composer require --dev denis-korchagin95/fs-control

Or you may to install fs-control via Composer in a dedicated composer.json, for example, in the tools/fs-control directory:

mkdir -p tools/fs-control
composer require --working-dir=tools/fs-control denis-korchagin95/fs-control

Usage

You need to create a configuration file for a whole project or just its small part.

The basic configuration file may look like:

fs_control:
  paths:
    - ./example-fs/Shared
  exclude_paths:
    - ./example-fs/Shared/Infrastructure/ParamConverter/Check
  groups:
    Application: ~
    Domain: ~
    Infrastructure: ~
  bindings:
    $/Application: Application
    $/Domain: Domain
    $/Infrastructure: Infrastructure
  rules:
    Entity:
      - Domain
    ParamConverter:
      - Infrastructure
    Command:
      - Application

You can analyze the project using a configuration file for some project.

./vendor/bin/fs-control example-fs-config.yaml

See usage, tool concepts, built-in extension list, and config reference documentation for more examples and details.

If you need to solve your specific problems that are not supported by the tool, you can create a custom extension.

Contribute

Any contributions are welcome. This repository is open to pull requests.

统计信息

  • 总下载量: 23.51k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2022-12-01