PHPackages                             rednose/htmldiff - 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. rednose/htmldiff

ActiveLibrary

rednose/htmldiff
================

RedNose HTMLDiff fork

027PHP

Since Jun 27Pushed 10y ago1 watchersCompare

[ Source](https://github.com/rednose-public/htmldiff)[ Packagist](https://packagist.org/packages/rednose/htmldiff)[ RSS](/packages/rednose-htmldiff/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

```
HTML diff engine derived from the MediaWiki Visual Diff module http://www.mediawiki.org/wiki/Visual_Diff.

Hosted on http://gitorious.org/htmldiff.

Sources:
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/diff/HTMLDiff.php?view=markup&pathrev=58266
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/diff/Diff.php?view=markup&pathrev=58266
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/diff/Nodes.php?view=markup&pathrev=58266
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Sanitizer.php?view=markup&pathrev=58267
http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Xml.php?view=markup&pathrev=58267

To use this, include the file htmldiff.php. The function html_diff($a, $b) is a helper function that returns
the difference between to HTML code strings as HTML code. It will assign the HTML class names diff-html-added
and diff-html-removed to changed content.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
or see http://www.gnu.org/
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d6ba8f378009a75e8b4406247d54edcb1f9a491244e992e3c1b4187e0b086aa?d=identicon)[marc-bnt](/maintainers/marc-bnt)

---

Top Contributors

[![marc-bnt](https://avatars.githubusercontent.com/u/1790095?v=4)](https://github.com/marc-bnt "marc-bnt (9 commits)")

### Embed Badge

![Health badge](/badges/rednose-htmldiff/health.svg)

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

PHPackages © 2026

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