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

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

rashid2538/php-htmldiff
=======================

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

v1.0(9y ago)71129.8k49[6 issues](https://github.com/rashid2538/php-htmldiff/issues)[14 PRs](https://github.com/rashid2538/php-htmldiff/pulls)GNU General Public License V2PHPPHP &gt;=5.3.0

Since Jun 12Pushed 6mo ago19 watchersCompare

[ Source](https://github.com/rashid2538/php-htmldiff)[ Packagist](https://packagist.org/packages/rashid2538/php-htmldiff)[ Docs](https://github.com/rashid2538/php-htmldiff)[ RSS](/packages/rashid2538-php-htmldiff/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (3)Used By (0)

php-htmldiff
============

[](#php-htmldiff)

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

This HTML Diff implementation is a PHP port of the ruby implementation found at .

This is also available in C# at .

License
-------

[](#license)

php-htmldiff is available under \[GNU General Public License, version 2\] ().

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance45

Moderate activity, may be stable

Popularity44

Moderate usage in the ecosystem

Community23

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.2% 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

3628d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bf3a007856921a05f41768798e181b4712841aeb90e73377a50ae66221184519?d=identicon)[rashid2538](/maintainers/rashid2538)

---

Top Contributors

[![rashid2538](https://avatars.githubusercontent.com/u/207907?v=4)](https://github.com/rashid2538 "rashid2538 (23 commits)")[![adamgoose](https://avatars.githubusercontent.com/u/611068?v=4)](https://github.com/adamgoose "adamgoose (1 commits)")[![faceleg](https://avatars.githubusercontent.com/u/1000759?v=4)](https://github.com/faceleg "faceleg (1 commits)")[![jerray](https://avatars.githubusercontent.com/u/591094?v=4)](https://github.com/jerray "jerray (1 commits)")[![tigris-berlin-mx](https://avatars.githubusercontent.com/u/180308638?v=4)](https://github.com/tigris-berlin-mx "tigris-berlin-mx (1 commits)")

---

Tags

htmlphpphp-htmldiffdiffhtml

### Embed Badge

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

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

###  Alternatives

[caxy/php-htmldiff

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

21320.9M15](/packages/caxy-php-htmldiff)[spatie/laravel-html

A fluent html builder

8376.4M72](/packages/spatie-laravel-html)[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)[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)[yajra/laravel-datatables-html

Laravel DataTables HTML builder plugin

2899.6M48](/packages/yajra-laravel-datatables-html)[wa72/htmlpagedom

jQuery-inspired DOM manipulation extension for Symfony's Crawler

3383.9M34](/packages/wa72-htmlpagedom)

PHPackages © 2026

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