Statistics
16232
3
0
68d
Badges
Dependencies

Coding standard

Tuned & very strict coding standards for PHP projects


Downloads total Latest stable

Install

composer require --dev ninjify/coding-standard

Strictness

File Strictness
ruleset strict
ruleset-nette 90%

Usage

Create ruleset.xml in root of your project.

<?xml version="1.0"?>
<ruleset name="YourProject">
    <!-- Extending rulesets -->
    <rule ref="vendor/ninjify/coding-standard/ruleset.xml"/>
    <!-- Ninjify [Nette] -->
    <!-- <rule ref="vendor/ninjify/coding-standard/ruleset-nette.xml"/> -->

    <!-- My rules -->
    
    <!-- Exclude folders -->
    <exclude-pattern>/tests/tmp</exclude-pattern>
</ruleset>
  • v0.6 v0.6

    Bumped! 🐾

    Diff: v0.5.1...v0.6

    Changes:

    • upgrade to Slevomat 4.0
  • v0.5.1 v0.5.1

    Bumped! 🖖

    Changes:

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

    Bump! *️⃣

    Changes:

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

    Bump! 🍼

    Changes:

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

    Bump! 🥅

    Changes:

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

    Bumped! 🌗

    Changes:

    • include more slevomat sniffs
  • 0.3.0 v0.3.0

    Bumped! 🤖

    Changes:

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

    Bumped! 🐕

    Changes:

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

    Bumped! 🏈

    Changes:

    • added nette ruleset
  • 0.1 v0.1

    Bumped! 👊

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

Componette Componette admin@componette.com