PHPackages                             morozov/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. morozov/diff-sniffer-core

Abandoned → [diff-sniffer/core](/?search=diff-sniffer%2Fcore)ArchivedLibrary[Utility &amp; Helpers](/categories/utility)

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

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

3.4.1(7y ago)158611MITPHPPHP ^7.2

Since Aug 28Pushed 6y agoCompare

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

READMEChangelog (7)Dependencies (6)Versions (14)Used By (1)

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

31

—

LowBetter than 66% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

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

2609d 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/morozov-diff-sniffer-core/health.svg)

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

###  Alternatives

[humanmade/coding-standards

Human Made Coding Standards

160437.4k57](/packages/humanmade-coding-standards)[mediawiki/mediawiki-codesniffer

MediaWiki CodeSniffer Standards

333.1M395](/packages/mediawiki-mediawiki-codesniffer)[ec-europa/toolkit

Toolkit packaged for Drupal projects based on Robo.

39250.0k28](/packages/ec-europa-toolkit)[shopsys/coding-standards

Coding standards definition compatible with PSR-2

20276.8k20](/packages/shopsys-coding-standards)[flyeralarm/php-code-validator

A custom coding standard for FLYERALARM

2227.1k6](/packages/flyeralarm-php-code-validator)[diff-sniffer/diff-sniffer

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

141.3k](/packages/diff-sniffer-diff-sniffer)

PHPackages © 2026

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