sunfoxcz/coding-standard
Composer 安装命令:
composer require sunfoxcz/coding-standard
包简介
Sunfox coding standard
README 文档
README
This is set of sniff and fixers combined under EasyCodingStandard that checks and fixes your PHP code.
Versions
| Sunfox Coding Standard | ^1.0 | ^2.0 | ^3.0 |
|---|---|---|---|
| PHP | ^7.1 | ^7.2 | ^7.4 || ^8.0 |
| symplify/easy-coding-standard | ^6.0.4 | ^7.2 | ^9.0 |
| nette/coding-standard | ^2.2 | ^2.3 | ^3.1 |
| slevomat/coding-standard | 5.0.4 | ^6.0 | ^7 |
Installation
composer require sunfoxcz/coding-standard
Example ecs.php
<?php declare(strict_types=1); use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; use Symplify\EasyCodingStandard\ValueObject\Option; return function (ContainerConfigurator $containerConfigurator): void { $containerConfigurator->import(__DIR__ . '/vendor/sunfoxcz/coding-standard/config/sunfox.php'); $parameters = $containerConfigurator->parameters(); $parameters->set(Option::FILE_EXTENSIONS, ['php', 'phpt']); $parameters->set(Option::CACHE_DIRECTORY, __DIR__ . '/.ecs_cache'); };
统计信息
- 总下载量: 1.53k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-03-12