dzunke/panaly-files 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

dzunke/panaly-files

Composer 安装命令:

composer require dzunke/panaly-files

包简介

A Panaly plugin that is analyzing a set of folders for their filesystem structure

README 文档

README

The plugin to the Panaly Project Analyzer enables metrics that can be utilized to collect data about the filesystem of a project. It will not access any tooling but utilizes the Symfony Finder Component.

Available Metrics

Directory Count

The directory count with the name directory_count gives an Integer result with the count of found directories. The following options are available for the metric.

Option Description
paths The paths will be combined to a single count

File Count

The file count with the name file_count gives an Integer result with the count of found directories. The following options are available for the metric.

Option Description
paths (Required) Array - The paths will be combined to a single count.
names (Optional) Array - A filter for the names of the files, the possible values are defined by the Finder component of symfony.

Largest Files

The metric with the name largest_files is able to list the largest files that are given within the paths. The Listing could also be filtered by a name and so will just return the largest files of specific filters like with the file count. The resulting metric is of type Table with the columns file and size.

Option Description
paths (Required) Array - The paths will be combined to a single count.
names (Optional) Array - A filter for the names of the files, the possible values are defined by the Finder component of symfony.
amount (Optional) Integer Default: 5 - The amount of files that should be listed in the result.

Example Configuration

# panaly.dist.yaml
plugins:
    DZunke\PanalyFiles\FilesPlugin: ~ # no options available

groups:
    filesystem:
        title: "Filesystem Metrics"
        metrics:
            file_count:
                title: All Project Files
                paths:
                    - src
            file_count_php:
                title: PHP Files
                metric: file_count
                paths:
                    - src
                    - tests
                names:
                    - "*.php"
            directory_count:
                title: Test Directories
                paths:
                    - tests
            largest_php_files:
                title: Largest PHP Files
                metric: largest_files
                amount: 3
                paths:
                    - src
                    - tests
                names:
                    - "*.php"

Thanks and License

Panaly Project Analyzer - Filesystem Plugin © 2024+, Denis Zunke. Released utilizing the MIT License.

GitHub @dzunke  ·  Twitter @DZunke

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-04-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固