eolica / coding-standard
PHP Coding Standard rules we use at Eolica Digital
v2.0.1
2024-09-09 07:26 UTC
Requires
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.62
- symplify/coding-standard: ^12.2
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