Componette

Componette

ninjify

ninjify / coding-standard v0.11.2

Tuned & very strict coding standards for PHP projects

download-cloud-line composer require ninjify/coding-standard

Website 🚀 contributte.org | Contact 👨🏻‍💻 f3l1x.io | Twitter 🐦 @contributte

Usage

To install latest version of ninjify/coding-standard use Composer.

composer require --dev ninjify/coding-standard

Versions

State Version Branch PHP
dev ^0.13 master >=7.2
stable ^0.12 master >=7.2

Documentation

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.

Development

See how to contribute to this package. This package is currently maintained by these authors.


Consider to support contributte development team. Also thank you for using this package.

  • v0.11.2 v0.11.2

    Bumped! 😎

    Diff: v0.11.1...v0.11.2

    Changes:

    • Don't force ternary operator
    • Removed deprecated sniffs
  • v0.11.1 v0.11.1

    Bumped! 🧍🏼‍♂️

    Diff: v0.11...v0.11.1

    Changes:

    • Update gamee ruleset
    • Update minimal deps versions
  • v0.11 v0.11

    Bumped! 👤

    Diff: v0.10...v0.11

    Changes:

    • Allow PHP 8.0
    • Allow increment/decrement operators, disallow numeric literals
    • Sniff: do not force space around case block
  • 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! 👊

bar-chart-fill

Statistics

download-cloud-fill
386557
star-fill
13
bug-fill
0
flashlight-fill
238d
price-tag-2-line

Badges

guide-fill

Dependencies