PHPackages                             nicwortel/coding-standard - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. nicwortel/coding-standard

ActivePhpcodesniffer-standard[Testing &amp; Quality](/categories/testing)

nicwortel/coding-standard
=========================

My ruleset for PHP CodeSniffer

v2.3.1(1mo ago)16.4k3MITPHPPHP ^8.4CI passing

Since Jan 11Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/nicwortel/coding-standard)[ Packagist](https://packagist.org/packages/nicwortel/coding-standard)[ RSS](/packages/nicwortel-coding-standard/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (8)Versions (14)Used By (3)

Coding standard
===============

[](#coding-standard)

[![Build status](https://camo.githubusercontent.com/0940c2bbf80cf8ea2532c111659a8bcd60167a79d47df26fff59e2eb68c868a3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6e6963776f7274656c2f636f64696e672d7374616e646172642f63692e79616d6c)](https://github.com/nicwortel/coding-standard/actions/workflows/ci.yaml)[![License](https://camo.githubusercontent.com/ebacb96ab5a891bd4dde765cde9c1a793928a5a6b98f9bc8149ad3d78b01337d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6e6963776f7274656c2f636f64696e672d7374616e646172642e737667)](https://github.com/nicwortel/coding-standard/blob/master/LICENSE.txt)[![Packagist version](https://camo.githubusercontent.com/59bdfa8de2581064e22c4d53437a3ed809160ee0d21b300f493dab6bc0fee5f8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6963776f7274656c2f636f64696e672d7374616e646172642e737667)](https://packagist.org/packages/nicwortel/coding-standard)[![PHP version from Packagist](https://camo.githubusercontent.com/a325284f36c3b31bcfa8fce2ffe260f49a0e4e8dfbfcf25e73a7a732a585d703/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6e6963776f7274656c2f636f64696e672d7374616e646172642e737667)](https://camo.githubusercontent.com/a325284f36c3b31bcfa8fce2ffe260f49a0e4e8dfbfcf25e73a7a732a585d703/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6e6963776f7274656c2f636f64696e672d7374616e646172642e737667)

This is my ruleset for [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer). It's based on the [PSR-12 Extended Coding Style](https://www.php-fig.org/psr/psr-12/), enhanced with sniffs from the [Slevomat Coding Standard](https://github.com/slevomat/coding-standard).

Installation
------------

[](#installation)

```
composer require --dev squizlabs/php_codesniffer nicwortel/coding-standard
```

Usage
-----

[](#usage)

Create a `phpcs.xml` file:

```

    src/

```

Then you can run `vendor/bin/phpcs`.

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance90

Actively maintained with recent releases

Popularity23

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity88

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~249 days

Recently: every ~289 days

Total

13

Last Release

49d ago

Major Versions

v1.1.2 → v2.0.02020-06-27

PHP version history (5 changes)v1.0.0PHP ^7.1

v2.0.0PHP ^7.2

v2.1.0PHP ^7.3 || ^8.0

v2.1.2PHP ^8.1

v2.3.1PHP ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/10e323af547b024081ad8624913ed5fe6a5f99ab407fe8d037189751628d57aa?d=identicon)[nicwortel](/maintainers/nicwortel)

---

Top Contributors

[![nicwortel](https://avatars.githubusercontent.com/u/1055691?v=4)](https://github.com/nicwortel "nicwortel (60 commits)")

---

Tags

coding-standardsphpphpcs-standardpsr-12

### Embed Badge

![Health badge](/badges/nicwortel-coding-standard/health.svg)

```
[![Health](https://phpackages.com/badges/nicwortel-coding-standard/health.svg)](https://phpackages.com/packages/nicwortel-coding-standard)
```

###  Alternatives

[slevomat/coding-standard

Slevomat Coding Standard for PHP\_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.

1.5k123.5M1.8k](/packages/slevomat-coding-standard)[drupal/coder

Coder is a library to review Drupal code.

3043.6M461](/packages/drupal-coder)[wp-cli/wp-cli-tests

WP-CLI testing framework

422.7M87](/packages/wp-cli-wp-cli-tests)[youwe/testing-suite

Contains Youwe's default testing packages for php.

13176.9k8](/packages/youwe-testing-suite)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
