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

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

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

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_cs file in your project to .php-cs-fixer.php
  • Add .php-cs-fixer.cache to your project's .gitignore file
  • Run vendor/bin/php-cs-fixer fix -v to 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.json file to use dxw/php-cs-fixer-config version ^2.0, and run composer update

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2020-07-01