PHPackages                             traderinteractive/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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. traderinteractive/coding-standard

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

traderinteractive/coding-standard
=================================

DWS Coding standard

v3.0.2(2y ago)126.3k4[1 PRs](https://github.com/traderinteractive/coding-standard-php/pulls)1MITPHPPHP ^7.0 || ^8.0CI failing

Since Apr 17Pushed 2y ago6 watchersCompare

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

READMEChangelog (4)Dependencies (3)Versions (18)Used By (1)

DWS Coding Standard
===================

[](#dws-coding-standard)

[![Latest Stable Version](https://camo.githubusercontent.com/f2649b357c71755402280330446200f779d924a45817914e73622c75e1ea722a/68747470733a2f2f706f7365722e707567782e6f72672f747261646572696e7465726163746976652f636f64696e672d7374616e646172642f762f737461626c65)](https://packagist.org/packages/traderinteractive/coding-standard)[![Latest Unstable Version](https://camo.githubusercontent.com/7ca5280464c92e8cf7195c142b5940e89011adae1f635ba9857e7064c978edbb/68747470733a2f2f706f7365722e707567782e6f72672f747261646572696e7465726163746976652f636f64696e672d7374616e646172642f762f756e737461626c65)](https://packagist.org/packages/traderinteractive/coding-standard)[![License](https://camo.githubusercontent.com/fad2c4c7afd83dc09f62218ea339994344dc24a0a50c2f9924ea2d08369f2ed6/68747470733a2f2f706f7365722e707567782e6f72672f747261646572696e7465726163746976652f636f64696e672d7374616e646172642f6c6963656e7365)](https://packagist.org/packages/traderinteractive/coding-standard)

[![Total Downloads](https://camo.githubusercontent.com/feffd532a1456b5061199ae8130f70b6c651681228ee95614b4aaf1a692dab08/68747470733a2f2f706f7365722e707567782e6f72672f747261646572696e7465726163746976652f636f64696e672d7374616e646172642f646f776e6c6f616473)](https://packagist.org/packages/traderinteractive/coding-standard)[![Daily Downloads](https://camo.githubusercontent.com/d94f7f2092715e47a906bfd7b3c3015538582d246324d9e352c5bc4b44c13df6/68747470733a2f2f706f7365722e707567782e6f72672f747261646572696e7465726163746976652f636f64696e672d7374616e646172642f642f6461696c79)](https://packagist.org/packages/traderinteractive/coding-standard)[![Monthly Downloads](https://camo.githubusercontent.com/10e628a0ca444763a99751406331ce452e24d49572ae845d29bd3d26f72770b6/68747470733a2f2f706f7365722e707567782e6f72672f747261646572696e7465726163746976652f636f64696e672d7374616e646172642f642f6d6f6e74686c79)](https://packagist.org/packages/traderinteractive/coding-standard)

A fairly complete [PHP\_CodeSniffer](http://www.squizlabs.com/php-codesniffer) coding standard. See the [standard document](standard.md) to see what "sniffs" are enforced.

Composer
--------

[](#composer)

This standard is meant to be used in a project using [Composer](http://getcomposer.org). It can be added to your project's composer.json as follows:

```
composer require traderinteractive/coding-standard
```

Then to use it, you can run the following (or add to your build process):

```
./vendor/bin/phpcs --standard=$(pwd)/vendor/traderinteractive/coding-standard/DWS YOUR_FILES_AND_DIRECTORIES
```

Contact
-------

[](#contact)

Developers may be contacted at:

- [Pull Requests](https://github.com/traderinteractive/coding-standard-php/pulls)
- [Issues](https://github.com/traderinteractive/coding-standard-php/issues)

Tests
-----

[](#tests)

Tests for the sniffs are included, and are run using the included build:

```
./vendor/bin/phpunit
```

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~527 days

Total

16

Last Release

923d ago

Major Versions

v0.3.5 → v1.0.02013-05-21

v1.4.0 → v2.0.02016-08-03

v2.x-dev → v3.0.02023-06-15

PHP version history (4 changes)v0.3.5PHP &gt;=5.3.2

v2.0.0PHP ~5.6 || ~7.0

v2.1.0PHP ^5.6 || ^7.0

v3.0.0PHP ^7.0 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/29952359?v=4)[Trader Interactive](/maintainers/traderinteractive)[@traderinteractive](https://github.com/traderinteractive)

---

Top Contributors

[![chadicus](https://avatars.githubusercontent.com/u/1182337?v=4)](https://github.com/chadicus "chadicus (33 commits)")[![chrisryan](https://avatars.githubusercontent.com/u/704326?v=4)](https://github.com/chrisryan "chrisryan (17 commits)")[![guywithnose](https://avatars.githubusercontent.com/u/1059169?v=4)](https://github.com/guywithnose "guywithnose (15 commits)")[![nubs](https://avatars.githubusercontent.com/u/57673?v=4)](https://github.com/nubs "nubs (7 commits)")[![misarji](https://avatars.githubusercontent.com/u/20325705?v=4)](https://github.com/misarji "misarji (3 commits)")[![raybot](https://avatars.githubusercontent.com/u/1583780?v=4)](https://github.com/raybot "raybot (2 commits)")

---

Tags

phpcsstandardcoding

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[consistence/coding-standard

Consistence - Coding Standard - PHP Code Sniffer rules

76840.1k94](/packages/consistence-coding-standard)[moodlehq/moodle-cs

Moodle Coding Sniffer rules

263.0M5](/packages/moodlehq-moodle-cs)[yoast/yoastcs

PHP\_CodeSniffer rules for Yoast projects

221.2M33](/packages/yoast-yoastcs)[mayflower/mo4-coding-standard

PHP CodeSniffer ruleset implementing the MO4 coding standards extending the Symfony coding standards.

17524.8k7](/packages/mayflower-mo4-coding-standard)

PHPackages © 2026

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