Skip to content

Eolica-Web/php-coding-standard

Repository files navigation

Eolica's PHP Easy Coding Standard configuration

This is an opinionated PHP linting and code style configuration package for Easy Coding Standard

Installation

You can install the package via Composer:

composer require --dev eolica/coding-standard

Usage

Add the default set to your ecs.php file:

<?php

declare(strict_types=1);

use Eolica\CodingStandard\Eolica;
use Symplify\EasyCodingStandard\Config\ECSConfig;

return ECSConfig::configure()
    ->withSets([Eolica::DEFAULT]);

You can test it by executing the following command:

./vendor/bin/ecs check

About

PHP Coding Standard rules we use at Eólica Digital

Resources

License

Stars

Watchers

Forks

Languages