Skip to content

contao/easy-coding-standard

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 

EasyCodingStandard configurations for Contao

This package includes the EasyCodingStandard configuration for Contao.

Installation

You can install the package with Composer:

composer require contao/easy-coding-standard

Usage

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

<?php

declare(strict_types=1);

use Symplify\EasyCodingStandard\Config\ECSConfig;

return static function (ECSConfig $ecsConfig): void {
    $ecsConfig->sets([__DIR__.'/vendor/contao/easy-coding-standard/config/contao.php']);

    // Adjust the configuration according to your needs.
};

Then run the script like this:

vendor/bin/ecs check src tests

License

Contao is licensed under the terms of the LGPLv3.

Getting support

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

About

EasyCodingStandard configurations for Contao

Resources

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages