dxw/php-cs-fixer-config
最新稳定版本:v2.1.1
Composer 安装命令:
composer require dxw/php-cs-fixer-config
包简介
README 文档
README
dxw's standard config for php-cs-fixer
Usage
Run this:
composer require --dev dxw/php-cs-fixer-config
Create .php-cs-fixer.php with these contents:
<?php
$finder = \PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__);
return \Dxw\PhpCsFixerConfig\Config::create()
->setFinder($finder);
Upgrading from v1.0.0 to v2.0.0
- Rename the
.php_csfile in your project to.php-cs-fixer.php - Add
.php-cs-fixer.cacheto your project's.gitignorefile - Run
vendor/bin/php-cs-fixer fix -vto confirm that the only remaining deprecation warning is "PhpCsFixer\Config::create is deprecated since 2.17 and will be removed in 3.0, use the constructor instead". If there are other deprecation warnings, address them now. - Update your project's
composer.jsonfile to usedxw/php-cs-fixer-configversion^2.0, and runcomposer update
统计信息
- 总下载量: 109.54k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 12
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-07-01