nicodinus/php-cs-fixer-config 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

nicodinus/php-cs-fixer-config

Composer 安装命令:

composer require nicodinus/php-cs-fixer-config

包简介

README 文档

README

License

Installation

composer require --dev nicodinus/php-cs-fixer-config

Usage

Configuration

Create a configuration file .php-cs-fixer.dist in the root of the project:

<?php

$config = new Nicodinus\lib\Config();

$config->getFinder()
    ->in(__DIR__ . '/lib')
    ->in(__DIR__ . '/test');

$cacheDir = \getenv('TRAVIS') ? \getenv('HOME') . '/.php-cs-fixer' : __DIR__;
$config->setCacheFile($cacheDir . '/.php_cs.cache');

return $config;

Git

Add .php_cs.cache (the cache file used by php-cs-fixer) to .gitignore:

/vendor
/.idea
/composer.lock
/.php_cs.cache
/.phpunit.result.cache

统计信息

  • 总下载量: 30
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 5
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-08-24