contao/php-cs-fixer

This package is abandoned and no longer maintained. No replacement package was suggested.

PHP-CS-Fixer configurations for Contao

2.2.0 2019-12-18 13:34 UTC

This package is auto-updated.

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


README

This package includes the PHP-CS-Fixer configurations for Contao.

Installation

You can install the package with Composer:

composer require contao/php-cs-fixer

Usage

Add the following to your .php_cs.dist file:

<?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;

License

Contao is licensed under the terms of the LGPLv3.

Getting support

Visit the support page to learn about the available support options.