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

ActiveLibrary

magroski/diff
=============

A class containing a diff implementation

v1.0.0(7y ago)06MITPHPPHP ^7.1

Since May 17Pushed 7y ago1 watchersCompare

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

READMEChangelogDependencies (5)Versions (2)Used By (0)

Diff
====

[](#diff)

[![Latest Stable Version](https://camo.githubusercontent.com/83d52325d4a394f890bb99f40d2d0aa94dcfb651800ae9bfca42dcba9b981bce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6167726f736b692f646966662e7376673f7374796c653d666c6174)](https://packagist.org/packages/magroski/diff)[![Minimum PHP Version](https://camo.githubusercontent.com/7a09b828563f7738e2e72ec4aade8144538bf5d41e1e2e718815c57e3416089f/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230372e312d3838393242462e7376673f7374796c653d666c6174)](https://php.net/)[![GitHub license](https://camo.githubusercontent.com/f48f8d6cf609f5b181b9c3218a85175fe8a5809c7ea400347f39697a5d55065d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c6174)](https://github.com/magroski/diff/blob/master/LICENSE)

This library is a modernized version of the Diff class originally implemented by Stephen Morley

Original disclaimer
-------------------

[](#original-disclaimer)

```
A class containing a diff implementation

Created by Stephen Morley - http://stephenmorley.org/ - and released under the terms of the CC0 1.0 Universal legal code

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

Unknown

Total

1

Last Release

2556d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7de9d1243823f8924284bcd592f89b99c2e1c010e2388a14f435efc0abc1ed33?d=identicon)[magroski](/maintainers/magroski)

---

Top Contributors

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

---

Tags

diff

###  Code Quality

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/magroski-diff/health.svg)](https://phpackages.com/packages/magroski-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)[caxy/php-htmldiff

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

21520.9M15](/packages/caxy-php-htmldiff)[localheinz/diff

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

4637.0M5](/packages/localheinz-diff)[diff/diff

Small standalone library for representing differences between data structures, computing such differences, and applying them as patches

2041.6M12](/packages/diff-diff)[ion-bazan/composer-diff

Compares composer.lock changes and generates Markdown report so you can use it in PR description.

1861.8M3](/packages/ion-bazan-composer-diff)

PHPackages © 2026

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