Statistics
142811
11
3
102d
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-standard 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>

Integration

Take a look at phpstorm folder, there should be prepared codestyle.

  • v0.10 v0.10

    Bumped! 👍

    Diff: v0.9...v0.10

    Changes:

    • Import slevomat sniffs individually
    • Requires php ^7.4, sniffs expect code to be php 7.4 compatible
    • Requires slevomat/coding-standard ~6.0.5
  • v0.9 v0.9

    Bumped! 👍

    Diff: v0.8...v0.9

    Changes:

  • v0.8 v0.8

    Bumped! 🥇

    Diff: v0.7...v0.8

    Changes:

    • slevomat/coding-standard 5.0.0
  • v0.7 v0.7

    Bumped! 🍎

    Diff: v0.6...v0.7

    Changes:

    • skip some sniffs from slevomat/coding-standard [#16][#15][#14][#13][#12]
    • added phpstorm codestyle [#11]
    • ignore @testCase annotation
  • v0.6 v0.6

    Bumped! 🐾

    Diff: v0.5.1...v0.6

    Changes:

    • upgrade to Slevomat 4.0
  • v0.2 v0.2

    Bumped! 🏈

    Diff: v0.1...v0.2

    Changes:

    • added nette ruleset
  • v0.5.1 v0.5.1

    Bumped! 🖖

    Diff: v0.5.0...v0.5.1

    Changes:

    • be more strict on namespaces (#8)
  • v0.5.0 v0.5.0

    Bump! *️⃣

    Diff: v0.4.0...v0.5.0

    Changes:

    • new slevomat/coding-standard v3 [#7]
    • new squizlabs/php_codesniffer v3 [#7]
  • v0.4.0 v0.4.0

    Bump! 🍼

    Diff: v0.3.2...v0.4.0

    Changes:

    • upgrade to slevomat/coding-standard: v2.4.2 [#5][#6]
  • v0.3.2 v0.3.2

    Bump! 🥅

    Diff: v0.3.1...v0.3.2

    Changes:

    • upgrade to slevomat/coding-standard: v2.0.2
    • update readme
  • v0.3.1 v0.3.1

    Bumped! 🌗

    Diff: v0.3.0...v0.3.1

    Changes:

    • include more slevomat sniffs
  • v0.3.0 v0.3.0

    Bumped! 🤖

    Diff: v0.2.1...v0.3.0

    Changes:

    • upgrade to Slevomat 2.0 & PHP 7.1
  • v0.2.1 v0.2.1

    Bumped! 🐕

    Diff: v0.2...v0.2.1

    Changes:

    • fix path to Slevomat ruleset (relative to vendor)
  • v0.1 v0.1

    Bumped! 👊

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

Componette Componette admin@componette.com