bombenprodukt / php-cs-fixer-config
为 friendsofphp/php-cs-fixer 提供配置工厂和多个规则集。
2.0.0
2024-04-20 06:54 UTC
Requires
- php: ^8.2
- illuminate/contracts: ^11.0
Requires (Dev)
- ergebnis/composer-normalize: ^2.2
- friendsofphp/php-cs-fixer: ^3.15
- infection/infection: ^0.27.0
- nunomaduro/collision: ^8.0
- nunomaduro/larastan: ^2.0
- orchestra/testbench: ^9.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- pestphp/pest-plugin-watch: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpstan/phpstan-strict-rules: ^1.5
- spatie/laravel-ray: ^1.2
This package is auto-updated.
Last update: 2024-09-20 08:01:56 UTC
README
该项目由 Brian Faust 创建并维护,是一个提供配置工厂和多个预设的 friendsofphp/php-cs-fixer
包。请务必浏览 变更日志、行为准则、贡献指南、许可 和 安全策略。
安装
注意 此包需要 PHP 8.2 或更高版本,并且支持 Laravel 10 或更高版本。
要获取最新版本,请使用 Composer 需求此项目。
$ composer require bombenprodukt/php-cs-fixer-config
用法
// .php-cs-fixer.php <?php use BombenProdukt\PhpCsFixer\ConfigurationFactory; use BombenProdukt\PhpCsFixer\Preset\Standard; $header = <<<EOF Copyright (c) 2023 BombenProdukt For the full copyright and license information, please view the LICENSE file that was distributed with this source code. EOF; $config = ConfigurationFactory::fromPreset(new Standard($header)); $config->getFinder()->in(__DIR__); return $config;