定制 umbrellio/code-style-php 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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)

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
Supported by Umbrellio

统计信息

  • 总下载量: 77.29k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 7
  • 点击次数: 1
  • 依赖项目数: 11
  • 推荐数: 0

GitHub 信息

  • Stars: 7
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-05-24