定制 instapro/coding-standard 二次开发

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

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

instapro/coding-standard

最新稳定版本:1.6.0

Composer 安装命令:

composer require instapro/coding-standard

包简介

The Instapro Coding Standard

README 文档

README

The Instapro Coding Standard is a set of PHP CS Fixer rules that we use in the Instapro projects.

How to use

  1. Install the package as a dev requirement

    composer require --dev instapro/coding-standard
  2. Add/update your .php-cs-fixer.dist.php configuration file to load the configuration from the package. Be sure to update the finder configuration to match the files you want to enforce the coding standard for.

    <?php
    
    declare(strict_types=1);
    
    use Instapro\CodingStandard\Load;
    
    return Load::configuration(
        PhpCsFixer\Finder::create()
            ->exclude('Files')
            ->in([
                __DIR__ . '/src',
                __DIR__ . '/tests',
            ])
            ->name('*.php'),
    );

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 6
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-04-06