承接 ticketswap/php-cs-fixer-config 相关项目开发

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

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

ticketswap/php-cs-fixer-config

最新稳定版本:1.3.0

Composer 安装命令:

composer require --dev ticketswap/php-cs-fixer-config

包简介

TicketSwap code style rules for PHP CS Fixer

关键字:

README 文档

README

TicketSwap code style rules for PHP CS Fixer.

Installation

Install the package via Composer:

composer require --dev ticketswap/php-cs-fixer-config

Configuration

Create a .php-cs-fixer.php file in the root of your project:

<?php

declare(strict_types=1);

use PhpCsFixer\Finder;
use Ticketswap\PhpCsFixerConfig\PhpCsFixerConfigFactory;
use Ticketswap\PhpCsFixerConfig\RuleSet\TicketSwapRuleSet;

$finder = Finder::create()
    ->in(__DIR__ . '/src')
    ->append([__DIR__ . '/.php-cs-fixer.php']);

return PhpCsFixerConfigFactory::create(TicketSwapRuleSet::create())->setFinder($finder);

Adjust the paths in the Finder to match your project structure.

Usage

Run PHP CS Fixer to fix your code style:

vendor/bin/php-cs-fixer fix

To check for violations without fixing:

vendor/bin/php-cs-fixer check --diff

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-08-13