sylius-labs/coding-standard
Battle-tested Sylius coding standard for PHP. Install via Composer and import the provided ecs.php into your EasyCodingStandard (ECS) config to apply consistent formatting and rules across your project. Includes guidance for migrating from YAML to PHP configs.
:1st_place_medal: Battle-tested coding standard configuration used in Sylius.
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');
use Symplify\EasyCodingStandard\Config\ECSConfig;
return static function (ECSConfig $ecsConfig): void {
$ecsConfig->import(__DIR__ . '/vendor/sylius-labs/coding-standard/ecs.php');
};
Use this package and follow their guidelines to automatically migrate your YML config to a PHP config file.
How can I help you explore Laravel packages today?