forkrefactor/coding-standard

PcComponentes Coding Standard for PHP_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.

v1.0.0 2021-12-08 13:01 UTC

This package is not auto-updated.

Last update: 2024-03-29 01:29:35 UTC


README

PcComponentes Coding Standard for PHP_CodeSniffer provides sniffs that fall into three categories.

Usage

Use composer to require the library:

composer require --dev pccomponentes/coding-standard

Create the phpcs.xml.dist configuration file and use the standard:

<?xml version="1.0" ?>
<ruleset name="Project rules">
    <rule ref="vendor/pccomponentes/coding-standard/src/ruleset.xml" />
</ruleset>