symplify/coding-standard

Set of Symplify rules for PHP_CodeSniffer and PHP CS Fixer.

Installs: 3 642 503

Dependents: 33

Suggesters: 2

Security: 0

Stars: 270

Watchers: 11

Forks: 10

v9.2.17 2021-04-14 16:08 UTC

This package is auto-updated.

Last update: 2021-04-14 16:10:40 UTC


README

Downloads

Set of rules for PHP_CodeSniffer and PHP-CS-Fixer used by Symplify projects.

They run best with EasyCodingStandard.

Install

composer require symplify/coding-standard --dev
composer require symplify/easy-coding-standard --dev
  1. Run with ECS:
# ecs.php
 use Symplify\EasyCodingStandard\ValueObject\Option;
+use Symplify\EasyCodingStandard\ValueObject\Set\SetList;

 return static function (ContainerConfigurator $containerConfigurator): void {
     $parameters = $containerConfigurator->parameters();

+    $parameters->set(Option::SETS, [
+        SetList::SYMPLIFY,
+    ]);
 };

Rules Overview


Contribute

The sources of this package are contained in the symplify monorepo. We welcome contributions for this package at symplify/symplify.