eolica/coding-standard

PHP Coding Standard rules we use at Eolica Digital

v2.0.1 2024-09-09 07:26 UTC

This package is auto-updated.

Last update: 2024-11-09 07:46:44 UTC


README

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