bigbite/phpcs-config 问题修复 & 功能扩展

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

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

bigbite/phpcs-config

最新稳定版本:v3.0.0

Composer 安装命令:

composer require --dev bigbite/phpcs-config

包简介

Big Bite's PHP Coding Standards.

README 文档

README

This package contains the PHPCS configuration Big Bite use for all projects. It is primarily based upon WPCS and VIP WPCS, but is more strict, and contains additional Sniffs not included by those standards.

Installation

Run the following command in terminal:

composer require --dev bigbite/phpcs-config

Then run:

$ composer update

Create a .phpcs.xml.dist file in your project and add the following, replacing {PROJECT} with your project name:

<?xml version="1.0"?>
<ruleset name="{PROJECT} Rules">
	<rule ref="./vendor/bigbite/phpcs-config/BigBite" />
</ruleset>

Alternatively, you can install the standard globally:

composer global require --dev bigbite/phpcs-config

And reference the standard directly within your .phpcs.xml.dist:

<?xml version="1.0"?>
<ruleset name="{PROJECT} Rules">
	<rule ref="BigBite" />
</ruleset>

Developing

Please note that the PHPUnit test suite is not yet compatible with PHP 8.*.

Clone this repository, and then run composer install && composer install-cs.
Please run the following command prior to creating a PR, and ensure that there are no errors:

  • composer run all-checks

If you're feeling especially nice, you can run this command instead:

  • composer run all-checks-strict

Contributors

  • @jaymcp - Original maintainer and developer.

统计信息

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

GitHub 信息

  • Stars: 3
  • Watchers: 3
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-04-05