timacdonald/php-style

我为我的项目定制的样式

dev-master 2020-10-23 08:02 UTC

This package is auto-updated.

Last update: 2024-09-23 16:57:12 UTC


README

CI

这些规则适用于我的个人项目和开源包。

安装

您可以使用 composerPackagist 安装。

$ composer require timacdonald/php-style:dev-master --dev

基本用法

在您的 .php_cs.dist 配置文件中...

<?php

// specify the paths to fix, as normal...

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

// then call and return the following global function...

return TiMacDonald\styles($finder);

感谢贡献

您可以使用此包,但我要求您联系(不是我自己)之前或目前正在维护或为您的项目中使用的开源库做出贡献的人,并对他们的工作表示感谢。考虑您的整个技术栈:包、框架、语言、数据库、操作系统、前端、后端等。