broadway/coding-standard
最新稳定版本:1.2.1
Composer 安装命令:
composer require broadway/coding-standard
包简介
The coding standard of the Broadway project.
README 文档
README
The coding standard of the Broadway project.
Installation
$ composer require --dev broadway/coding-standard
Configuration
PHP CS fixer
- create a
.php-cs-fixer.phpfile referencing the.php-cs-fixer.dist.phptemplate:
# .php-cs-fixer.php <?php $config = require 'vendor/broadway/coding-standard/.php-cs-fixer.dist.php'; $config->setFinder( \PhpCsFixer\Finder::create() ->in([ __DIR__ . '/src', __DIR__ . '/test', ]) ); return $config;
- add
.php_cs.cacheto your.gitignore.
docheader
- copy the
.docheader.disttemplate:
cp vendor/broadway/coding-standard/.docheader.dist ./.docheader
- modify the
.docheaderfile is necessary.
Usage
$ vendor/bin/php-cs-fixer fix --allow-risky=yes --diff --verbose
$ vendor/bin/docheader check {src,test}
统计信息
- 总下载量: 37.52k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 25
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-06-16