PHPackages                             brownbear/php-html-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. brownbear/php-html-diff

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

brownbear/php-html-diff
=======================

Computes the Diff between two HTML Files

2501PHP

Since Feb 18Pushed 10y ago1 watchersCompare

[ Source](https://github.com/original-brownbear/htmldiff)[ Packagist](https://packagist.org/packages/brownbear/php-html-diff)[ RSS](/packages/brownbear-php-html-diff/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

PhpHtmlDiff is a PHP library that displays the difference between two HTML snippets. It is taken from the [MediaWiki Visual Diff module](http://www.mediawiki.org/wiki/Visual_Diff) and has been modified to be usable outside of MediaWiki.

Usage
=====

[](#usage)

1. Clone this repository somewhere.
2. Run bin/php-html-diff.php diff file1.html file2.html

License
=======

[](#license)

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

Sources
=======

[](#sources)

These are the original MediaWiki source files that this library is based on: [HTMLDiff.php](http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/diff/HTMLDiff.php?view=markup&pathrev=58266), [Diff.php](http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/diff/Diff.php?view=markup&pathrev=58266), [Nodes.php](http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/diff/Nodes.php?view=markup&pathrev=58266), [Sanitizer.php](http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Sanitizer.php?view=markup&pathrev=58267), [Xml.php](http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/Xml.php?view=markup&pathrev=58267)

[![Minimum PHP Version](https://camo.githubusercontent.com/86e7d829a466cacd5658a22073e27d49d39dac72cc18216ac4963ed5463c5bbc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230352e362d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/)[![Total Downloads](https://camo.githubusercontent.com/2d9aec8e136813a168aea13a6ebaae5529705bceb2a52245d6220c5cfe2fca0c/68747470733a2f2f706f7365722e707567782e6f72672f62726f776e626561722f7068702d68746d6c2d646966662f646f776e6c6f616473)](https://packagist.org/packages/brownbear/php-transpiler)[![Dependency Status](https://camo.githubusercontent.com/eac549f75cbfb10f8a3b506e56c48d0c8506d00e66f38b9f3b5b35b095171109/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3536396665646163326332666162303032393030303261372f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/569fedac2c2fab00290002a7)

###  Health Score

23

—

LowBetter than 25% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60.7% 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://avatars.githubusercontent.com/u/6490959?v=4)[Armin Braun](/maintainers/original-brownbear)[@original-brownbear](https://github.com/original-brownbear)

---

Top Contributors

[![original-brownbear](https://avatars.githubusercontent.com/u/6490959?v=4)](https://github.com/original-brownbear "original-brownbear (17 commits)")[![cdauth](https://avatars.githubusercontent.com/u/1801792?v=4)](https://github.com/cdauth "cdauth (8 commits)")[![christiaan](https://avatars.githubusercontent.com/u/118490?v=4)](https://github.com/christiaan "christiaan (2 commits)")[![jabouillei](https://avatars.githubusercontent.com/u/898515?v=4)](https://github.com/jabouillei "jabouillei (1 commits)")

### Embed Badge

![Health badge](/badges/brownbear-php-html-diff/health.svg)

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

###  Alternatives

[torann/geoip

Support for multiple Geographical Location services.

2.2k15.7M104](/packages/torann-geoip)[symfony/clock

Decouples applications from the system clock

432219.5M497](/packages/symfony-clock)[eluceo/ical

The eluceo/iCal package offers an abstraction layer for creating iCalendars. You can easily create iCal files by using PHP objects instead of typing your \*.ics file by hand. The output will follow RFC 5545 as best as possible.

1.2k19.1M68](/packages/eluceo-ical)[ysfkaya/filament-phone-input

A phone input component for Laravel Filament

3221.4M28](/packages/ysfkaya-filament-phone-input)[magento/magento-composer-installer

Composer installer for Magento modules

7524.5M360](/packages/magento-magento-composer-installer)[geo-io/interface

Geo I/O base interfaces.

626.5M7](/packages/geo-io-interface)

PHPackages © 2026

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