This is an opinionated PHP linting and code style configuration package for Easy Coding Standard
You can install the package via Composer:
composer require --dev eolica/coding-standard
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