umbrellio/code-style-php
最新稳定版本:2.0
Composer 安装命令:
composer require umbrellio/code-style-php
包简介
Umbrellio php code style.
关键字:
README 文档
README
Settings used in Umbrellio php projects.
Installation
Install via composer:
php composer.phar require --dev umbrellio/code-style-php
Create config ecs.yml:
imports: - { resource: vendor/umbrellio/code-style-php/umbrellio-cs.yml }
If major version of EasyCodingStandard 9 or higher
create config ecs.php:
<?php declare(strict_types=1); use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; return static function(ContainerConfigurator $containerConfigurator): void { $containerConfigurator->import(__DIR__ . '/vendor/umbrellio/code-style-php/umbrellio-cs.php'); };
Usage
Run in CLI:
vendor/bin/ecs check src --fix --config=ecs.yml
or:
vendor/bin/ecs check src --fix --config=ecs.php
Dependencies (and Links)
- EasyCodingStandard - used library.
- code-style - linter settings for other languages.
License
Released under MIT License.
Contributing
- Fork it ( https://github.com/umbrellio/code-style-php )
- Create your feature branch (
git checkout -b feature/my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin feature/my-new-feature) - Create new Pull Request
统计信息
- 总下载量: 77.29k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 7
- 点击次数: 1
- 依赖项目数: 11
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-05-24