Statistics
26539
7
0
6d
Badges
Dependencies

Coding standard

Tuned & very strict coding standards for PHP projects. Trusted by Contributte, Apitte, Nettrine and many others projects.

This library use sniffs from slevomat/coding-standards and ruleset definitions are based on consistence/coding-standard and doctrine/coding-standard. Thank yu guys.


Downloads total Latest stable

Install

composer require --dev ninjify/coding-standard

Usage

File Usage
ruleset global
contributte Contributte, Apitte, Nettrine

Create ruleset.xml in root of your project.

<?xml version="1.0"?>
<ruleset name="Acme">
    <!-- Ninjify Coding Standard -->
    <rule ref="./vendor/ninjify/coding-standard/ruleset.xml"/>

    <!-- OR -->
    
    <!-- Contributte Coding Standard -->
    <rule ref="./vendor/ninjify/coding-standard/contributte.xml"/>

    <!--Exclude folders -->
    <exclude-pattern>/tests/tmp</exclude-pattern>
</ruleset>

Is this addon outdated? Did you find an issue? Please report it.

Componette Componette admin@componette.com