close
The Wayback Machine - https://web.archive.org/web/20201010145220/https://github.com/ProtonMail/php-coding-standard
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

Readme.md

Proton PHP Coding Standards

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>

About

ProtonLabs Coding Standard for PHP_CodeSniffer (extending PSR12)

Topics

Resources

License

Packages

No packages published

Languages

You can’t perform that action at this time.