signet / code-style
Signet's code style package.
Installs: 1 047
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=8.0
- slevomat/coding-standard: ^7.0.8
- symplify/easy-coding-standard: ^9.3.11
Requires (Dev)
- overtrue/phplint: ^3.0.3
README
An ECS Signet codestyle package.
Installation
You can install the package via composer:
composer require signet/code-style
Usage
Add a ecs.php
file to the root of your project (if it doesn't exist) 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/signet/code-style/signet-ecs.php'); $services = $containerConfigurator->services(); // $services->set(...); $parameters = $containerConfigurator->parameters(); $parameters->set(Option::PATHS, [ __DIR__ . '/src', __DIR__ . '/config', __DIR__ . '/tests', __DIR__ . '/ecs.php', ]); };
NOTE:
signet-ecs
applies the same fixers as the preconfigured ecs PSR-12
set (see
SetList::PSR_12).