承接 modix/php-cs-rulesets 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

modix/php-cs-rulesets

最新稳定版本:1.3.3

Composer 安装命令:

composer require modix/php-cs-rulesets

包简介

Modix rulesets for PHP-CS-Fixer

README 文档

README

Installation

Install the rulesets with composer

composer require modix/php-cs-rulesets --no-plugins --dev

If you want to use GrumPHP, execute the following command.

composer require phpro/grumphp-shim --no-plugins --dev to install grump.

Configuration

create a default .php-cs-fixer.php file in your project root by running the following command.

cp ./vendor/modix/php-cs-rulesets/src/Resources/.php-cs-fixer.php.dist ./.php-cs-fixer.php

Alternatively you can create file yourself.

<?php

require __DIR__.'/vendor/autoload.php';
$modixSet = new \Modix\PhpCsRulesets\RuleSet\Sets\ModixSet();

$finder = PhpCsFixer\Finder::create()
    ->in(__DIR__.'/src')
    ->in(__DIR__.'/tests')
;

$config = new PhpCsFixer\Config();
$config->setCacheFile(__DIR__.'/.php-cs-fixer.cache');
$config
    ->setRiskyAllowed(false)
    ->setRules($modixSet->getRules())
    ->setFinder($finder)
;

return $config;

Adapt the finder to your needs and let your IDE to use this configuration.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: Unknown
  • 更新时间: 2021-03-03

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固