PHPackages                             diff-sniffer/core - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. diff-sniffer/core

Abandoned → [diff-sniffer/diff-sniffer](/?search=diff-sniffer%2Fdiff-sniffer)ArchivedLibrary[Validation &amp; Sanitization](/categories/validation)

diff-sniffer/core
=================

Core component for Diff Sniffer, a tool to validate coding standards only in changed line

3.4.1(7y ago)11141MITPHPPHP ^7.2

Since Aug 28Pushed 6y agoCompare

[ Source](https://github.com/diff-sniffer/core)[ Packagist](https://packagist.org/packages/diff-sniffer/core)[ RSS](/packages/diff-sniffer-core/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (7)Dependencies (6)Versions (13)Used By (0)

Diff Sniffer Core component
===========================

[](#diff-sniffer-core-component)

[![PHP Version](https://camo.githubusercontent.com/e91ffbd23f764553c7ba3dbef9800b30d71268ff4ac35327a2758e50ae6a9e5f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545372e322d626c75652e737667)](https://packagist.org/packages/diff-sniffer/core)[![Latest Stable Version](https://camo.githubusercontent.com/c3b3f7ac1607a7ad16f525fadcaedf5c98c36a5c0e4630f46bec2505f3d6f5f4/68747470733a2f2f706f7365722e707567782e6f72672f646966662d736e69666665722f636f72652f762f737461626c65)](https://packagist.org/packages/diff-sniffer/core)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/ad6281aa97f30ce294f6c831b68e3a9cf66370c9899b3a3782d811c68d02ff1b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f646966662d736e69666665722f636f72652f6261646765732f7175616c6974792d73636f72652e706e67)](https://scrutinizer-ci.com/g/diff-sniffer/core/)[![Code Coverage](https://camo.githubusercontent.com/7a1bcb23839cc27681107daefe16de68efac9502c3c22d4c011868039674cdb1/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f646966662d736e69666665722f636f72652f6261646765732f636f7665726167652e706e67)](https://scrutinizer-ci.com/g/diff-sniffer/core/)[![Travis CI Build Status](https://camo.githubusercontent.com/3f61091dbaeecec3b76f5a5ca3a50ec5d6fa49c37cb5a6d6aa13b9d504768a14/68747470733a2f2f7472617669732d63692e6f72672f646966662d736e69666665722f636f72652e706e67)](https://travis-ci.org/diff-sniffer/core)[![AppVeyor Build status](https://camo.githubusercontent.com/07775d3ce14efb9aaf2badcd731cdd6e51ab118b77c5f1db8e1a46128be6ef9e/68747470733a2f2f63692e6170707665796f722e636f6d2f6170692f70726f6a656374732f7374617475732f6661396d7234796733367066316b67633f7376673d74727565)](https://ci.appveyor.com/project/diff-sniffer/core)

This is a tool that allows validation of coding standards only for changed lines but not the whole file.

This is not a working application. It provides `DiffSniffer\Changeset` interface that should be implemented in order to accomplish some results.

See existing implementations:

- [diff-sniffer/git](https://github.com/diff-sniffer/git): Git command line implementation

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 98.8% 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 ~207 days

Recently: every ~128 days

Total

11

Last Release

2616d ago

Major Versions

0.1.0 → 1.5.02014-08-05

1.5.1 → 2.3.02015-03-31

2.3.0.1 → 3.0.02017-10-30

PHP version history (2 changes)3.0.0PHP ^7.1

3.4.0PHP ^7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d593ca4b147d5711e6894f711f806adca6875fc7a7d3300f927cd0ceafb2a59?d=identicon)[morozov](/maintainers/morozov)

---

Top Contributors

[![morozov](https://avatars.githubusercontent.com/u/59683?v=4)](https://github.com/morozov "morozov (80 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/diff-sniffer-core/health.svg)

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

###  Alternatives

[drupal/coder

Coder is a library to review Drupal code.

3045.1M536](/packages/drupal-coder)[dereuromark/cakephp-ide-helper

CakePHP IdeHelper Plugin to improve auto-completion

1882.3M40](/packages/dereuromark-cakephp-ide-helper)[ninjify/coding-standard

Tuned &amp; very strict coding standards for PHP projects. Trusted by Contributte, Apitte, Nettrine and many others.

13499.2k14](/packages/ninjify-coding-standard)[leroy-merlin-br/coding-standard

The coding standard for PHP projects on LMBR

2138.3k15](/packages/leroy-merlin-br-coding-standard)

PHPackages © 2026

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