第二十五层 / php-cs-fixer-config
提供friendsofphp/php-cs-fixer的25楼配置。
1.0.0
2019-08-05 09:21 UTC
Requires
- php: ^7.1
- friendsofphp/php-cs-fixer: ^2.15
Requires (Dev)
- jangregor/phpstan-prophecy: ^0.4.1
- phpstan/phpstan: ^0.11.8
- phpstan/phpstan-deprecation-rules: ^0.11.2
- phpstan/phpstan-strict-rules: ^0.11.1
- phpunit/phpunit: ^8.2
This package is auto-updated.
Last update: 2024-09-05 21:21:42 UTC
README
为friendsofphp/php-cs-fixer提供多个规则集。此仓库基于localheinz/php-cs-fixer-config。
需求
PHP需要至少是PHP 7.1.0版本。
安装
运行
$ composer require --dev twentyfifth/php-cs-fixer-config
用法
在项目根目录下创建配置文件.php_cs.dist
<?php $finder = PhpCsFixer\Finder::create() ->in(__DIR__) ; return TwentyFifth\PhpCsFixer\Php71Config::create() ->setFinder($finder) ;