🥇 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
:$containerConfigurator->import('vendor/sylius-labs/coding-standard/ecs.php');
```php
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
return static function (ContainerConfigurator $containerConfigurator): void {
$containerConfigurator->import('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.