cpsit / php-cs-fixer-config
CPS 项目共享的 PHP-CS-Fixer 配置
1.1.0
2023-12-29 10:59 UTC
Requires
- php: ~8.1.0 || ~8.2.0 || ~8.3.0
- friendsofphp/php-cs-fixer: ^3.14
Requires (Dev)
- armin/editorconfig-cli: ^1.8 || ^2.0
- ergebnis/composer-normalize: ^2.41
- phpstan/extension-installer: ^1.3
- phpstan/phpstan: ^1.10
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-phpunit: ^1.3
- phpstan/phpstan-strict-rules: ^1.5
- phpunit/phpunit: ^10.5
- rector/rector: ^0.18.13
This package is auto-updated.
Last update: 2024-09-20 16:21:48 UTC
README
PHP-CS-Fixer 配置
此包包含基本的 PHP-CS-Fixer 配置,用于CPS项目。所有配置选项都作为规则集提供,针对不同的使用场景。
🔥 安装
composer require --dev cpsit/php-cs-fixer-config
⚡ 使用
在您的 .php-cs-fixer.php
文件中配置 PHP-CS-Fixer
use CPSIT\PhpCsFixerConfig; use PhpCsFixer\Config; // Create config object and configure Finder $config = new Config(); $config->getFinder()->in(__DIR__); // Apply ruleset $ruleset = new PhpCsFixerConfig\Rule\DefaultRuleset(); $ruleset->apply($config); return $config;
🧑💻 贡献
请参阅 CONTRIBUTING.md
。
⭐ 许可证
本项目采用 GNU 通用公共许可证 3.0(或更高版本) 许可。