streamcommon/coding-standard
Composer 安装命令:
composer require streamcommon/coding-standard
包简介
StreamCommon Team Coding Standard
README 文档
README
Installation
- Install the module via composer:
- Console run:
composer require --dev streamcommon/coding-standard- Or add into your
composer.json:
"require-dev": { "streamcommon/coding-standard": "*" }
- Add composer scripts into your
composer.json:"scripts": { "cs-check": "phpcs", "cs-fix": "phpcbf" }
- Create file
phpcs.xml:<?xml version="1.0"?> <ruleset name="StreamCommon Team Coding Standard"> <rule ref="./vendor/streamcommon/coding-standard/ruleset.xml"/> <file>bin</file> <file>config</file> <file>lib</file> <file>src</file> <file>test</file> </ruleset>
Usage
Run: composer cs-check OR composer cs-fix
Customize
See https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-ruleset.xml
统计信息
- 总下载量: 459
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 5
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2019-02-05