jadu/php-style
最新稳定版本:2.1.0
Composer 安装命令:
composer require jadu/php-style
包简介
Jadu PHP coding style configuration for PHP-CS-Fixer
README 文档
README
Require the php-style dev dependency:
composer require --dev jadu/php-style
In your project's .php-cs-fixer.dist.php config file use the Config class as follows:
<?php
require_once __DIR__ . '/vendor/jadu/php-style/src/Config.php';
use Jadu\Style\Config;
use PhpCsFixer\Finder;
$finder = Finder::create();
$finder->in(__DIR__ . '/src');
$finder->in(__DIR__ . '/tests/unit');
$config = new Config();
$config->setFinder($finder);
return $config;
Now add phpcs to your project's build tasks.
Example CI command:
vendor/bin/php-cs-fixer --dry-run -v fix
统计信息
- 总下载量: 102.62k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2019-06-21