Componette

Componette

ninjify

ninjify / coding-standard v0.12.1

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.12.1 v0.12.1

    Bumped! ๐Ÿฐ

    Diff: v0.12.0...v0.12.1

    Changes:

  • v0.12.0 v0.12.0

    Bumped! ๐Ÿจ

    Diff: v0.11.2...v0.12.0

    Changes:

  • 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! ๐Ÿ‘Š

Componette Componette felix@nette.org