kdyby/coding-standard

Kdyby Coding Style

Maintainers

👁 fprochazka

Package info

github.com/Kdyby/CodingStandard

Homepage

pkg:composer/kdyby/coding-standard

Statistics

Installs: 6 319

Dependents: 7

Suggesters: 0

Stars: 1

Open Issues: 4

v1.0 2017-05-22 21:05 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

BSD-3-Clause, GPL-2.0, GPL-3.0 b1df144c44b40104167dfb96533e1a84e11ec60a

standardphpcsCoding StandardcodesniffersniffercodingrulesetcsPHPCodeSniffer

This package is auto-updated.

Last update: 2026-06-28 11:39:33 UTC


README

👁 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>