contao/php-cs-fixer

该软件包已被废弃,不再维护。未建议替代软件包。

Contao 的 PHP-CS-Fixer 配置

2.2.0 2019-12-18 13:34 UTC

This package is auto-updated.

Last update: 2021-02-08 13:53:43 UTC


README

此软件包包含 Contao 的 PHP-CS-Fixer 配置。

安装

您可以使用 Composer 安装此包

composer require contao/php-cs-fixer

使用方法

将以下内容添加到您的 .php_cs.dist 文件中

<?php

$header = <<<EOF
This file is part of Contao.

(c) Leo Feyer

@license LGPL-3.0-or-later
EOF;

$config = new Contao\PhpCsFixer\DefaultConfig($header);
$config
    ->getFinder()
    ->in(['src/'])
;

return $config;

许可证

Contao 根据 LGPLv3 许可证进行许可。

获取支持

访问 支持页面 了解可用的支持选项。