定制 mll-lab/php-cs-fixer-config 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

mll-lab/php-cs-fixer-config

最新稳定版本:v5.11.0

Composer 安装命令:

composer require mll-lab/php-cs-fixer-config

包简介

Shared rules for php-cs-fixer

README 文档

README

Shared configuration for php-cs-fixer

GitHub license Packagist Packagist

Installation

composer require --dev mll-lab/php-cs-fixer-config

Usage

In your .php-cs-fixer.php:

<?php declare(strict_types=1);

use function MLL\PhpCsFixerConfig\config;

$finder = PhpCsFixer\Finder::create()
    ->notPath('vendor')
    ->in(__DIR__)
    ->name('*.php')
    ->ignoreDotFiles(true)
    ->ignoreVCS(true);

return config($finder);

Enable risky rules:

use function MLL\PhpCsFixerConfig\risky;

return risky($finder);

Override rules:

return config($finder, [
    'some_rule' => false,
]);

Customize config:

return config($finder)
    ->setHideProgress(true);

统计信息

  • 总下载量: 402.31k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 26
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-03-24