soosyze/php-cs-fixer-config

由Soosyze维护的项目使用的Php-cs-fixer配置。

1.0.0 2021-12-12 12:10 UTC

This package is auto-updated.

Last update: 2024-09-12 18:23:46 UTC


README

Packagist

PhpCsFixer配置,用于Soosyze项目。

安装

Composer

要通过Composer安装Soosyze\PhpCsFixer,您必须拥有安装器或二进制文件Composer

进入您的项目目录,打开命令提示符并运行以下命令

composer require soosyze/queryflatfile --no-dev

使用方法

在项目根目录创建配置文件.php-cs-fixer.dist.php

<?php

$finder = PhpCsFixer\Finder::create()
    ->exclude('build')
    ->in(__DIR__);

$config = new Soosyze\PhpCsFixer\Config();
$config->setFinder($finder);

return $config;

许可证

灵感来源于BedrockStreaming/php-cs-fixer-config。本项目受MIT许可证的许可。