PHPackages                             snebes/php-daisydiff - 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. snebes/php-daisydiff

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

snebes/php-daisydiff
====================

PHP DaisyDiff Port

v1.0.0(7y ago)56.0k↑40%MITPHPPHP &gt;=7.1.0

Since Jan 30Pushed 6y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (2)Versions (4)Used By (0)

php-daisydiff
=============

[](#php-daisydiff)

[![PHP Version](https://camo.githubusercontent.com/57a5b97a6d9a142e6bffb9cc3b2bb89de662acc491e90d3b82249231701bff57/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f736e656265732f7068702d6461697379646966662e7376673f6d61784167653d33363030)](https://packagist.org/packages/snebes/php-daisydiff)[![Latest Version](https://camo.githubusercontent.com/16c80d282dbff44d66cc2c88849afae581c45afba98d80023bc9fdf649f6becf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736e656265732f7068702d6461697379646966662e7376673f6d61784167653d33363030)](https://packagist.org/packages/snebes/php-daisydiff)[![Build Status](https://camo.githubusercontent.com/aa7f922303807fb87e830a3b10a4978851716df7b40be7179b460d21c5b50f24/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f6275696c642f672f736e656265732f7068702d6461697379646966662e7376673f6d61784167653d33363030)](https://scrutinizer-ci.com/g/snebes/php-daisydiff)[![Code Quality](https://camo.githubusercontent.com/d144246c0d44720c6decb33c5aeccc1f8fef6cce047823c1ccadc415474261a0/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f736e656265732f7068702d6461697379646966662e7376673f6d61784167653d33363030)](https://scrutinizer-ci.com/g/snebes/php-daisydiff)[![Test Coverage](https://camo.githubusercontent.com/eb77e47e8a6f81b5b46521f086652dbb3bfe856fb5343f5e56d1fe9e3c80e177/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f736e656265732f7068702d6461697379646966662e7376673f6d61784167653d33363030)](https://scrutinizer-ci.com/g/snebes/php-daisydiff)

Daisy Diff is a PHP implementation of the [Java library](https://github.com/DaisyDiff/DaisyDiff) that diffs (compares) HTML files. It highlights added and removed words and annotates changes to the styling.

Installation
------------

[](#installation)

You can add this library as a local, per-project dependency to your project using [Composer](https://getcomposer.org/):

```
composer require snebes/php-daisydiff

```

### Usage

[](#usage)

The `DaisyDiff` class can be used to generate a textual representation of the difference between two HTML strings:

```
