定制 mobizel/coding-standard 二次开发

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

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

mobizel/coding-standard

最新稳定版本:v1.3.0

Composer 安装命令:

composer require mobizel/coding-standard

包简介

Battle-tested coding standard configuration used at Mobizel.

README 文档

README

Coding Standard

🥇 Battle-tested coding standard configuration used at Mobizel.

Installation & usage

  1. Install this package:

    $ composer require --dev mobizel/coding-standard
  2. Import the configuration file in your ecs.php:

    $ecsConfig->import('vendor/mobizel/coding-standard/ecs.php');

Example config (ecs.php)

<?php

use PhpCsFixer\Fixer\Comment\HeaderCommentFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;

return static function (ECSConfig $ecsConfig): void {
   $ecsConfig->import('vendor/mobizel/coding-standard/ecs.php');

   $header = <<<EOM
This file is part of <The Project>.

(c) Mobizel

For the full copyright and license information, please view the LICENSE
file that was distributed with this source code.
EOM;

   $services = $ecsConfig->services();
   $services
       ->set(HeaderCommentFixer::class)
       ->call('configure', [[
           'header' => $header,
           'location' => 'after_open',
       ]])
   ; 
};

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-04-27