Coding Standard

This project is set of PhpCs fixers and PHP_Code sniffers combined under EasyCodingStandard that checks and fixes your code.
PHP 7.1
PHP 8.0

# Installation

Install this project into global folder:

$ composer create-project bytebase/coding-standard coding-standard

# Use

Check coding standard by running this command:

$ path/to/coding-standard/ecs check -c <php-style-rules>

Option -c is the same as --config.

Available PHP style rules are in configurations: v70, v71, v73 and v74. The name of configuration represents version of PHP.

And fix it by adding --fix option into command:

$ path/to/coding-standard/ecs check -c <php-style-rule> --fix