定制 phuongdev89/yii2-phpcheckstyle 二次开发

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

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

phuongdev89/yii2-phpcheckstyle

Composer 安装命令:

composer require phuongdev89/yii2-phpcheckstyle

包简介

Yii2 phpcheckstyle

README 文档

README

PHPCheckstyle is an open-source tool that helps PHP programmers adhere to certain coding conventions. The tools checks the input PHP source code and reports any deviations from the coding convention.

The tool uses the PEAR Coding Standards as the default coding convention. But it allows you to configure it to suit your coding standards.

Installation

Installation with Composer

composer require phuongdev89/yii2-phpcheckstyle

Add to your root composer.json

"repositories" : [
    {
        "type" : "git",
        "url" : "https://github.com/phuongdev89/phpcheckstyle"
    }
]

Add to console/config/main.php

'controllerMap' => [
    'coverage' => [
        'class' => \phuongdev89\phpcheckstyle\commands\CoverageController::class,
    ],
]

Options

Name Type Description Required Default value
$progress bool Display progress file when checking If not set, default is 1 No true
$format string|array Output format (html/text/xml/xml_console/console/html_console). Can be multiple formats separator by comma. No html
$level string Level to report Value is: INFO ERROR WARNING IGNORE No INFO
$maxErrors int No 100
$language string No en-us
$outdir string|null Output directory of report No runtime/phpcheckstyle
$config string|null Config path No phuongdev89/phpcheckstyle/phpcheckstyle.xml
$debug bool Debug output No false

Usage

Scan only git modified

php yii coverage

or

php yii coverage/git

Scan all project, exclude environments vendor test

php yii coverage 1

Scan file or folder

php yii coverage/run frontend/controllers

Scan multiple files or folders

php yii coverage/run frontend/controllers,frontend/models

Scan multiple files or folders and exclude some files or folders

php yii coverage/run frontend/controllers,frontend/models frontend/components,frontend/helpers

Help

php yii help coverage/index
php yii help coverage/git
php yii help coverage/run

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-02-17

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固