dflydev/php-coding-standards
Composer 安装命令:
composer require dflydev/php-coding-standards
包简介
This repository contains the coding standards used by Dragonfly team.
README 文档
README
Usage
composer require dflydev/php-coding-standards
Create a new .php-cs-fixer.dist.php file and within it add the following:
use Ergebnis\PhpCsFixer\Config; $config = Config\Factory::fromRuleSet(new Dflydev\PhpCsFixer\Config\RuleSet\Dflydev()); $config->getFinder()->in(__DIR__); $config->setCacheFile(__DIR__ . '/.php-cs-fixer.cache'); return $config;
Configuration with override rules
💡 Optionally override rules from a rule set by passing in an array of rules to be merged in:
use Ergebnis\PhpCsFixer\Config; $config = Config\Factory::fromRuleSet(new Dflydev\PhpCsFixer\Config\RuleSet\Dflydev(), [ 'mb_str_functions' => false, 'strict_comparison' => false, ]); $config->getFinder()->in(__DIR__); $config->setCacheFile(__DIR__ . '/.php-cs-fixer.cache'); return $config;
统计信息
- 总下载量: 787
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-05-03