bizurkur/coding-standard

Bizurkur coding standard.

Installs: 5 669

Dependents: 28

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Type:phpcodesniffer-standard

v1.0.8 2019-09-14 05:32 UTC

This package is auto-updated.

Last update: 2022-03-14 11:16:38 UTC


README

Bizurkur coding standard for PHP_CodeSniffer. This heavily uses most of the Slevomat standard, with the addition of some others.

Installation

It's best to install using Composer.

$ composer require bizurkur/coding-standard --dev

Usage

In your phpcs.xml.dist file, add a rule:

<?xml version="1.0"?>
<ruleset name="AcmeProject">
    <rule ref="vendor/bizurkur/coding-standard/ruleset.xml">
        <!-- sniffs to exclude -->
    </rule>
</ruleset>

Or via the command line:

vendor/bin/phpcs --standard=vendor/bizurkur/coding-standard/ruleset.xml