nexylan/coding-standard

The Nexylan PHP coding standard

Installs: 1 714

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 3

Forks: 0

Open Issues: 1

Type:phpcodesniffer-standard

v0.1.1 2019-03-22 10:17 UTC

This package is auto-updated.

Last update: 2024-04-22 22:03:18 UTC


README

The Nexylan Coding Standard is a set of configurations for many CS tools.

PHP_CodeSniffer (PHP)

Nexylan Coding Standard is based on PSR and Symfony standards plus some rules from Slevomat Coding Standard.

Usage

Install it globally with php-code-sniffer (RECOMMENDED):

composer global require nexylan/coding-standard

Or, as a dependency of your project:

composer require --dev nexylan/coding-standard

Then add the standard on your ruleset.xml file:

<?xml version="1.0"?>
<ruleset name="My project standard">
    <rule ref="Nexylan"/>
</ruleset>

This is the quickest way, but you can of course personalize or disable some rules.