protonlabs/php-coding-standard

ProtonLabs Coding Standard

Installs: 42 021

Dependents: 1

Suggesters: 0

Security: 0

Stars: 7

Watchers: 5

Forks: 7

Open Issues: 1

Type:phpcodesniffer-standard

v6.0.2 2023-10-27 08:33 UTC

This package is auto-updated.

Last update: 2024-10-27 11:02:56 UTC


README

PHP from Packagist Packagist Version

Installation & Usage

Install the package with composer

composer req protonlabs/php-coding-standard --dev

To use it in your phpcs xml, add a rule pointing to the ruleset.xml

<?xml version="1.0"?>
<ruleset name="ProtonLabs PHP CodeSniffer Standard">
    <!-- Proton Coding Standard – https://github.com/ProtonMail/php-coding-standard -->
    <rule ref="vendor/protonlabs/php-coding-standard/Proton/ruleset.xml">
        <!-- sniffs to exclude -->
        <!-- <exclude name="SlevomatCodingStandard.PHP.UselessParentheses"/> -->
    </rule>

    <exclude-pattern>*/vendor/*</exclude-pattern>
</ruleset>