Skip to content

janzarubadek/CodingStandard

 
 

Repository files navigation

Coding Standard

Build Status Downloads this Month Latest stable Coverage Status

Variation of Slevomat Coding Standard and Consistence Coding Standard of PHPCodeSniffer coding style rules.

Installation

Install the kdyby/coding-standard with Composer:

composer require --dev kdyby/coding-standard

Usage

There is a standard for PHP 7.1+

vendor/bin/phpcs --standard=vendor/kdyby/coding-standard/KdybyCodingStandard/ruleset-7.1.xml --encoding=utf-8 -sp src tests

Customization

To allow customization, just include the ruleset-7.1.xml standard in you project's ruleset.xml

<?xml version="1.0"?>
<ruleset name="My Project">
    <rule ref="vendor/kdyby/coding-standard/KdybyCodingStandard/ruleset-7.1.xml"/>

    <!-- custom settings -->
</ruleset>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%