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

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

christophedlr/diff
==================

Register diff in two files or two string in PHP for economy of resources

1.0(9y ago)024CeCILL V2PHPPHP &gt;= 5.3.0

Since Jul 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Christophedlr/diff)[ Packagist](https://packagist.org/packages/christophedlr/diff)[ RSS](/packages/christophedlr-diff/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (2)Used By (0)

Diff PHP Library
================

[](#diff-php-library)

About
-----

[](#about)

Diff is an library for list all modifications (search by lines not words) in two strings or two files. The return informations not compatible at diff and patch Linux programs.

Install
-------

[](#install)

### First possibility

[](#first-possibility)

Add require information in your composer.json:

> christophedlr/diff

And use command in console/terminal:

```
composer install
```

### Second possibility

[](#second-possibility)

type in console/terminal:

```
composer require christophedlr/diff
```

License
-------

[](#license)

This library is deliver under CeCILL V2 Open-Source license, for more informations, read LICENSE file or go to [http://cecill.info/licences/Licence\_CeCILL\_V2-en.html](http://cecill.info/licences/Licence_CeCILL_V2-en.html)

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

3647d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/994442?v=4)[Christophe Daloz - De Los Rios](/maintainers/Christophedlr)[@Christophedlr](https://github.com/Christophedlr)

---

Top Contributors

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

---

Tags

diff

### Embed Badge

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

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

###  Alternatives

[jfcherng/php-diff

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

4785.6M65](/packages/jfcherng-php-diff)[caxy/php-htmldiff

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

21421.8M20](/packages/caxy-php-htmldiff)[localheinz/diff

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

4739.7M9](/packages/localheinz-diff)[diff/diff

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

2031.6M14](/packages/diff-diff)[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.

3518.5M1](/packages/mkalkbrenner-php-htmldiff-advanced)[yetanotherape/diff-match-patch

Port of the google-diff-match-patch (https://github.com/google/diff-match-patch) lib to PHP

158946.3k13](/packages/yetanotherape-diff-match-patch)

PHPackages © 2026

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