ilyes512 / code-style
An ECS (Easy Coding Standards) codestyle package.
1.0.0-alpha.2
2023-02-25 14:34 UTC
Requires
- php: ^7.4 || ^8.0
- slevomat/coding-standard: ^8.0
- symplify/easy-coding-standard: ^11.0
Requires (Dev)
- overtrue/phplint: ^9.0.4
This package is auto-updated.
Last update: 2024-05-03 09:31:16 UTC
README
An ECS (Easy Coding Standards) codestyle package.
Installation
You can install the package via composer:
composer require --dev ilyes512/code-style
Usage
Add a ecs.php
file to the root of your project with the below contents.
ecs.php
:
<?php declare(strict_types=1); use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator; use Symplify\EasyCodingStandard\ValueObject\Option; return static function (ContainerConfigurator $containerConfigurator): void { $containerConfigurator->import(__DIR__ . '/vendor/ilyes512/code-style/ecs.php'); $containerConfigurator ->parameters() ->set( Option::PATHS, [ __DIR__ . '/src', __DIR__ . '/config', __DIR__ . '/tests', __DIR__ . '/ecs.php', ], ); };