PHPackages                             wdes/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. wdes/coding-standard

ActivePhpcodesniffer-standard[Utility &amp; Helpers](/categories/utility)

wdes/coding-standard
====================

The Wdes coding standard

v3.3.2(2y ago)014.8k—0%8UNLICENSEPHPPHP ^7.2 || ^8.0

Since Mar 21Pushed 2y ago1 watchersCompare

[ Source](https://github.com/wdes/coding-standard)[ Packagist](https://packagist.org/packages/wdes/coding-standard)[ Docs](https://github.com/wdes/coding-standard)[ RSS](/packages/wdes-coding-standard/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (11)Used By (8)

Wdes coding-standard
====================

[](#wdes-coding-standard)

The Wdes coding-standard

Rules to disable for `PHP < 5.4` compatibility
----------------------------------------------

[](#rules-to-disable-for-php--54-compatibility)

- `Generic.Arrays.DisallowLongArraySyntax`

Rules to disable for `PHP < 7` compatibility
--------------------------------------------

[](#rules-to-disable-for-php--7-compatibility)

- `SlevomatCodingStandard.Classes.ClassConstantVisibility.MissingConstantVisibility`

How to add it
-------------

[](#how-to-add-it)

- Run `composer require --dev wdes/coding-standard`
- Create file: `phpcs.xml` with the contents below

```

    .
    */tmp/*
    */vendor/*
    */build/*
    */node_modules/*

```

- Remove phpcs from your dev deps if you have it, we require it for you. Use `composer remove squizlabs/php_codesniffer --dev`
- Run `./vendor/bin/phpcs` to see the coding standard errors
- Run `./vendor/bin/phpcbf` to try to fix them

### Recommended `composer.json` config

[](#recommended-composerjson-config)

```
    "scripts": {
        "phpcbf": "@php phpcbf",
        "phpcs": "@php phpcs",
        ...
    },
    "config": {
        ...
        "allow-plugins": {
            "dealerdirect/phpcodesniffer-composer-installer": true
        }
    },
```

How to exclude rules
--------------------

[](#how-to-exclude-rules)

### Examples of ways to exclude rules

[](#examples-of-ways-to-exclude-rules)

```

    src
    scripts
    examples
    tests

    */src/Resources/themes/*
    */tests/phar/data/**/*

        0

        *

        db/migrations/*

        src/libs/Logger.php

```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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 ~111 days

Recently: every ~166 days

Total

10

Last Release

884d ago

Major Versions

v1.0.0 → v2.0.02021-03-21

v2.0.1 → v3.0.02021-03-21

PHP version history (2 changes)v1.0.0PHP ^7.1 || ^8.0

v3.3.0PHP ^7.2 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/25723041?v=4)[Wdes](/maintainers/wdes)[@wdes](https://github.com/wdes)

---

Top Contributors

[![williamdes](https://avatars.githubusercontent.com/u/7784660?v=4)](https://github.com/williamdes "williamdes (46 commits)")

---

Tags

coding-standardphpphpcscodesnifferWdes

### Embed Badge

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

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

###  Alternatives

[phpcsstandards/phpcsutils

A suite of utility functions for use with PHP\_CodeSniffer

6333.4M58](/packages/phpcsstandards-phpcsutils)[drupal/coder

Coder is a library to review Drupal code.

3043.6M461](/packages/drupal-coder)[spryker/code-sniffer

Spryker Code Sniffer Standards

374.1M2.3k](/packages/spryker-code-sniffer)[consistence/coding-standard

Consistence - Coding Standard - PHP Code Sniffer rules

75833.3k94](/packages/consistence-coding-standard)[mediawiki/mediawiki-codesniffer

MediaWiki CodeSniffer Standards

332.9M317](/packages/mediawiki-mediawiki-codesniffer)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.1M29](/packages/yoast-yoastcs)

PHPackages © 2026

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