Skip to content

nexylan/coding-standard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Nexylan Coding Standard

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.