Coding Standard
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
- Run with ECS:
# ecs.php
use Symplify\EasyCodingStandard\Config\ECSConfig;
+use Symplify\EasyCodingStandard\ValueObject\Set\SetList;
return static function (ECSConfig $ecsConfig): void {
+ $ecsConfig->sets([SetList::SYMPLIFY]);