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

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

localheinz/diff
===============

Fork of sebastian/diff for use with ergebnis/composer-normalize

1.3.0(8mo ago)4737.0M—8.1%2[1 issues](https://github.com/localheinz/diff/issues)[5 PRs](https://github.com/localheinz/diff/pulls)5BSD-3-ClausePHPPHP ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0CI passing

Since Sep 7Pushed 3mo agoCompare

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

READMEChangelog (3)Dependencies (2)Versions (15)Used By (5)

diff
====

[](#diff)

[![Integrate](https://github.com/localheinz/diff/workflows/Integrate/badge.svg)](https://github.com/localheinz/diff/actions)[![Merge](https://github.com/localheinz/diff/workflows/Merge/badge.svg)](https://github.com/localheinz/diff/actions)[![Release](https://github.com/localheinz/diff/workflows/Release/badge.svg)](https://github.com/localheinz/diff/actions)[![Renew](https://github.com/localheinz/diff/workflows/Renew/badge.svg)](https://github.com/localheinz/diff/actions)

[![Code Coverage](https://camo.githubusercontent.com/0634118f63774bbb8d52740eda1fd4d17100e77867044fe49ef869e85e4c2cba/68747470733a2f2f636f6465636f762e696f2f67682f6c6f63616c6865696e7a2f646966662f6272616e63682f6d61696e2f67726170682f62616467652e737667)](https://codecov.io/gh/localheinz/diff)[![Type Coverage](https://camo.githubusercontent.com/bea8663f35aba6c6b6d609c6cfcc73a0d07ffa1a5efad2bb40ba14d5884c072b/68747470733a2f2f73686570686572642e6465762f6769746875622f6c6f63616c6865696e7a2f646966662f636f7665726167652e737667)](https://shepherd.dev/github/localheinz/diff)

[![Latest Stable Version](https://camo.githubusercontent.com/fe3ef63d1599f52e0b06acbf431c836b6ec0b148e1cbd2830ebcd98aab427bed/68747470733a2f2f706f7365722e707567782e6f72672f6c6f63616c6865696e7a2f646966662f762f737461626c65)](https://packagist.org/packages/localheinz/diff)[![Total Downloads](https://camo.githubusercontent.com/70e30a602e38ce7bc4ab14c6543c3094ea15a383c91f38030cec3a0281ea3217/68747470733a2f2f706f7365722e707567782e6f72672f6c6f63616c6865696e7a2f646966662f646f776e6c6f616473)](https://packagist.org/packages/localheinz/diff)[![Monthly Downloads](https://camo.githubusercontent.com/09e94bbcfdc45aba4cde388337e0b54de0a9e6402fc6ba1aa6a12b4b245f83c3/687474703a2f2f706f7365722e707567782e6f72672f6c6f63616c6865696e7a2f646966662f642f6d6f6e74686c79)](https://packagist.org/packages/localheinz/diff)

This is a fork of [`sebastian/diff`](https://github.com/sebastianbergmann/diff) for use with [`ergebnis/composer-normalize`](https://github.com/ergebnis/composer-normalize), with permission from Sebastian Bergmann.

Please use [`sebastian/diff`](https://github.com/sebastianbergmann/diff) instead.

###  Health Score

64

—

FairBetter than 99% of packages

Maintenance70

Regular maintenance activity

Popularity60

Solid adoption and visibility

Community25

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

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

Recently: every ~520 days

Total

6

Last Release

262d ago

PHP version history (4 changes)1.0.0PHP ^7.1

1.1.1PHP ^7.1 || ^8.0

1.2.0PHP ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0

1.3.0PHP ~7.1.0 || ~7.2.0 || ~7.3.0 || ~7.4.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0 || ~8.5.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/8cabc9efd157e2b47aa5aa9830180f5ebd07813cc3e93ff1a9993b2c3d264909?d=identicon)[localheinz](/maintainers/localheinz)

---

Top Contributors

[![sebastianbergmann](https://avatars.githubusercontent.com/u/25218?v=4)](https://github.com/sebastianbergmann "sebastianbergmann (151 commits)")[![localheinz](https://avatars.githubusercontent.com/u/605483?v=4)](https://github.com/localheinz "localheinz (67 commits)")[![SpacePossum](https://avatars.githubusercontent.com/u/10462973?v=4)](https://github.com/SpacePossum "SpacePossum (49 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (13 commits)")[![whatthejeff](https://avatars.githubusercontent.com/u/306525?v=4)](https://github.com/whatthejeff "whatthejeff (7 commits)")[![ergebnis-bot](https://avatars.githubusercontent.com/u/59560144?v=4)](https://github.com/ergebnis-bot "ergebnis-bot (6 commits)")[![GrahamCampbell](https://avatars.githubusercontent.com/u/2829600?v=4)](https://github.com/GrahamCampbell "GrahamCampbell (5 commits)")[![Chris8934](https://avatars.githubusercontent.com/u/44963939?v=4)](https://github.com/Chris8934 "Chris8934 (5 commits)")[![djmattyg007](https://avatars.githubusercontent.com/u/489338?v=4)](https://github.com/djmattyg007 "djmattyg007 (3 commits)")[![nafigator](https://avatars.githubusercontent.com/u/1971423?v=4)](https://github.com/nafigator "nafigator (3 commits)")[![krizalys](https://avatars.githubusercontent.com/u/1499352?v=4)](https://github.com/krizalys "krizalys (2 commits)")[![pscheit](https://avatars.githubusercontent.com/u/488189?v=4)](https://github.com/pscheit "pscheit (2 commits)")[![andreybolonin](https://avatars.githubusercontent.com/u/2576509?v=4)](https://github.com/andreybolonin "andreybolonin (1 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (1 commits)")[![remicollet](https://avatars.githubusercontent.com/u/270445?v=4)](https://github.com/remicollet "remicollet (1 commits)")[![ruudk](https://avatars.githubusercontent.com/u/104180?v=4)](https://github.com/ruudk "ruudk (1 commits)")[![keradus](https://avatars.githubusercontent.com/u/2716794?v=4)](https://github.com/keradus "keradus (1 commits)")[![henriquemoody](https://avatars.githubusercontent.com/u/154023?v=4)](https://github.com/henriquemoody "henriquemoody (1 commits)")[![mimrock](https://avatars.githubusercontent.com/u/779206?v=4)](https://github.com/mimrock "mimrock (1 commits)")

---

Tags

diffphpdiffudiffunified diffunidiff

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[sebastian/diff

Diff implementation

7.7k901.5M250](/packages/sebastian-diff)[jfcherng/php-diff

A comprehensive library for generating differences between two strings in multiple formats (unified, side by side HTML etc).

4705.1M51](/packages/jfcherng-php-diff)[jblond/php-diff

A comprehensive library for generating differences between two hashable objects (strings or arrays).

36125.1k1](/packages/jblond-php-diff)[caxy/php-htmldiff

A library for comparing two HTML files/snippets and highlighting the differences using simple HTML.

21320.9M15](/packages/caxy-php-htmldiff)[mkalkbrenner/php-htmldiff-advanced

An add-on for the php-htmldiff library for comparing two HTML files/snippets and highlighting the differences using simple HTML.

3517.8M1](/packages/mkalkbrenner-php-htmldiff-advanced)[jbzoo/composer-diff

See what has changed after a composer update.

53888.9k1](/packages/jbzoo-composer-diff)

PHPackages © 2026

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