承接 stolt/package-analyser 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

stolt/package-analyser

最新稳定版本:v1.5.1

Composer 安装命令:

composer require --dev stolt/package-analyser

包简介

The package analyser is a utility tool that analyses a PHP project/micro-package for its structure.

README 文档

README

Test Status Version PHP Version PDS Skeleton llms.txt

Package analyser logo

The package analyser is a utility tool that analyses a 🐘 project/micro-📦 for its structure, and provides tips on best practices for such one. It's also my first TUI (Terminal User Interface) written in Laravel Zero, so bear with me.

Installation

The package analyser TUI should be installed globally through Composer.

composer global require --dev stolt/package-analyser

Make sure that the path to your global vendor binaries directory is in your $PATH. You can determine the location of your global vendor binaries directory via composer global config bin-dir --absolute. This way the package-analyser executable can be located.

Usage

Run the package analyser TUI within or against a 🐘 project/micro-package directory, and it will analyse the given package and provide tips on best practices when required.

package-analyser analyse [<path-to-package-directory>]

Available options

The --configuration option allows the usage of a configuration with analyse steps to ignore. If no configuration is provided the tool will look for an existing .pa.yml file per default.

The --write-report option will write an HTML report in the current directory based on the provided package.

The --violations-threshold option defines the threshold on which the package analysis is considered invalid and produces a non-zero exit code. Defaults to 0.

Configuration

To omit steps from the package analysis it's possible to configure these like shown next. The available steps are defined in PackageAnalyser.php.

stepsToOmit:
    - static-analyse
    - eol-php

Running tests

composer test

License

This library and its TUI are licensed under the MIT license. Please see LICENSE.md for more details.

Changelog

Please see CHANGELOG.md for more details.

Contributing

Please see CONTRIBUTING.md for more details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-02