sylius-labs / coding-standard
Battle-tested coding standard configuration used in Sylius.
Installs: 4 605 988
Dependents: 502
Suggesters: 0
Security: 0
Stars: 86
Watchers: 8
Forks: 25
Open Issues: 0
Requires
- php: ^8.0
- slevomat/coding-standard: ^8.0
- symplify/easy-coding-standard: ^10.0 || ^11.0 || ^12.0
Conflicts
- symplify/package-builder: ^8.3
README
Coding Standard
🥇 Battle-tested coding standard configuration used in Sylius.
Installation & usage
-
Install this package:
composer require --dev sylius-labs/coding-standard
-
Import the configuration file in your
ecs.php
:$ecsConfig->import('vendor/sylius-labs/coding-standard/ecs.php');
Example config (ecs.php)
use Symplify\EasyCodingStandard\Config\ECSConfig; return static function (ECSConfig $ecsConfig): void { $ecsConfig->import(__DIR__ . '/vendor/sylius-labs/coding-standard/ecs.php'); };
Upgrade from YML to PHP config file
Use this package and follow their guidelines to automatically migrate your YML config to a PHP config file.