PHPackages                             walkingdexter/phpcs-diff - 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. walkingdexter/phpcs-diff

ActiveLibrary[Testing &amp; Quality](/categories/testing)

walkingdexter/phpcs-diff
========================

Removes non-diff violations from PHP\_CodeSniffer reports.

2.0.0(2y ago)06.1k↓33.3%BSD-3-ClausePHP

Since Dec 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/WalkingDexter/phpcs-diff)[ Packagist](https://packagist.org/packages/walkingdexter/phpcs-diff)[ Docs](https://github.com/WalkingDexter/phpcs-diff)[ RSS](/packages/walkingdexter-phpcs-diff/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

About
-----

[](#about)

Removes non-diff violations from [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) reports. This is a lightweight solution with minimum requirements.

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

[](#installation)

```
composer require --dev walkingdexter/phpcs-diff
```

Usage
-----

[](#usage)

Check current changes:

```
vendor/bin/phpcs-diff
```

This is a shortcut for:

```
vendor/bin/phpcs-diff --filter=GitModified
```

Check changes that have been staged for commit:

```
vendor/bin/phpcs-diff --filter=GitStaged
```

Check changes relative to the `main` branch:

```
vendor/bin/phpcs-diff --filter=GitCommitted --runtime-set git_diff_commit main
```

Check changes relative to a specific commit:

```
vendor/bin/phpcs-diff --filter=GitCommitted --runtime-set git_diff_commit 15a5e27
```

If the commit name is set in the configuration options:

```
vendor/bin/phpcs-diff --filter=GitCommitted
```

You can use any other options and arguments that the `phpcs` command accepts.

Limitations
-----------

[](#limitations)

Only reports that use prepared data are supported.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

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

Total

2

Last Release

872d ago

Major Versions

1.0.0 → 2.0.02023-12-28

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/18674681?v=4)[Andrey Tymchuk](/maintainers/WalkingDexter)[@WalkingDexter](https://github.com/WalkingDexter)

---

Top Contributors

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

---

Tags

phpcsdiff

### Embed Badge

![Health badge](/badges/walkingdexter-phpcs-diff/health.svg)

```
[![Health](https://phpackages.com/badges/walkingdexter-phpcs-diff/health.svg)](https://phpackages.com/packages/walkingdexter-phpcs-diff)
```

###  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)[wp-coding-standards/wpcs

PHP\_CodeSniffer rules (sniffs) to enforce WordPress coding conventions

2.7k42.5M1.6k](/packages/wp-coding-standards-wpcs)[dealerdirect/phpcodesniffer-composer-installer

PHP\_CodeSniffer Standards Composer Installer Plugin

596161.9M1.9k](/packages/dealerdirect-phpcodesniffer-composer-installer)[escapestudios/symfony2-coding-standard

CodeSniffer ruleset for the Symfony 2+ coding standard

40611.1M275](/packages/escapestudios-symfony2-coding-standard)[phpcompatibility/phpcompatibility-wp

A ruleset for PHP\_CodeSniffer to check for PHP cross-version compatibility issues in projects, while accounting for polyfills provided by WordPress.

21830.6M587](/packages/phpcompatibility-phpcompatibility-wp)[sirbrillig/phpcs-variable-analysis

A PHPCS sniff to detect problems with variables.

14448.5M97](/packages/sirbrillig-phpcs-variable-analysis)

PHPackages © 2026

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