slam/php-cs-fixer-extensions 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

slam/php-cs-fixer-extensions

最新稳定版本:v3.14.0

Composer 安装命令:

composer require slam/php-cs-fixer-extensions

包简介

Slam extension of friendsofphp/php-cs-fixer

README 文档

README

Latest Stable Version Downloads Integrate

PHP-CS-Fixer extensions and configurations

Installation

Execute:

composer require --dev slam/php-cs-fixer-extensions

Usage

In your .php_cs file:

<?php $config = new PhpCsFixer\Config(); $config->setRiskyAllowed(true); $config->registerCustomFixers([ new SlamCsFixer\FinalAbstractPublicFixer(), new SlamCsFixer\FinalInternalClassFixer(), new SlamCsFixer\FunctionReferenceSpaceFixer(), new SlamCsFixer\InlineCommentSpacerFixer(), new SlamCsFixer\PhpFileOnlyProxyFixer(new PhpCsFixer\Fixer\Basic\BracesFixer()), new SlamCsFixer\Utf8Fixer(), ]); $this->setRules([ 'Slam/final_abstract_public' => true, 'Slam/final_internal_class' => true, 'Slam/function_reference_space' => true, 'Slam/inline_comment_spacer' => true, 'Slam/php_only_braces' => true, 'Slam/utf8' => true, ]); $config->getFinder() ->in(__DIR__ . '/app') ->in(__DIR__ . '/tests') ->name('*.phtml') ; return $config;

统计信息

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

GitHub 信息

  • Stars: 68
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04