nicodinus/php-cs-fixer-config
Composer 安装命令:
composer require nicodinus/php-cs-fixer-config
包简介
README 文档
README
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
- 点击次数: 1
- 依赖项目数: 5
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-08-24