sylius-labs/coding-standard

Battle-tested coding standard configuration used in Sylius.

v4.0.2 2021-03-19 13:08 UTC

This package is auto-updated.

Last update: 2021-04-19 13:22:27 UTC


README

🥇 Battle-tested coding standard configuration used in Sylius.

Installation & usage

  1. Install this package:

    $ composer require --dev sylius-labs/coding-standard
  2. Import the configuration file in your ecs.php:

    $containerConfigurator->import('vendor/sylius-labs/coding-standard/ecs.php');

Example config (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');
};
```

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.