e-lodgy / coding-standard
E-Lodgy 中使用的编码规范
v1.1.6
2023-10-16 23:51 UTC
Requires
- php: ^7.4 || ^8.0
- symplify/easy-coding-standard: ^11.1.17
Requires (Dev)
- ext-json: *
- phpstan/extension-installer: ^1.3.1
- phpstan/phpstan: ^1.10.38
- phpstan/phpstan-phpunit: ^1.3.15
- phpunit/phpunit: ^9.6.13
Conflicts
- symplify/easy-coding-standard: 11.1.18
This package is auto-updated.
Last update: 2024-09-24 11:12:22 UTC
README
E-Lodgy 使用的编码规范配置。
安装与使用
- 安装此包
$ composer require --dev e-lodgy/coding-standard
- 将配置文件导入您的
ecs.php
$config->import('vendor/e-lodgy/coding-standard/ecs.php');
示例配置 (ecs.php)
use Symplify\EasyCodingStandard\Config\ECSConfig; return static function (ECSConfig $config): void { $config->import('vendor/e-lodgy/coding-standard/ecs.php'); $config->paths([ __DIR__ . '/src', // Your project path __DIR__ . '/tests', // Your project test paths __DIR__ . '/ecs.php', // Your own ecs config file ]); };