contao/easy-coding-standard

EasyCodingStandard configurations for Contao

Fund package maintenance!
to.contao.org/donate

Installs: 139 577

Dependents: 215

Suggesters: 0

Security: 0

Stars: 12

Watchers: 8

Forks: 7

Open Issues: 0


README

This package includes the EasyCodingStandard configuration for Contao.

Installation

Add the package to your Contao installation via Composer:

composer require contao/easy-coding-standard --dev

Usage

Create a file named ecs.php in the root directory of your project.

<?php

declare(strict_types=1);

use Contao\EasyCodingStandard\Set\SetList;
use Symplify\EasyCodingStandard\Config\ECSConfig;

return ECSConfig::configure()
    ->withSets([SetList::CONTAO])
    // Adjust the configuration according to your needs.
;

Then run the script like this:

vendor/bin/ecs check

What's inside?

The package contains the following custom fixers:

The package contains the following custom sniffs:

License

Contao is licensed under the terms of the LGPLv3.

Getting support

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