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.

0.0.8 2016-07-25 17:07 UTC

This package is auto-updated.

Last update: 2024-11-29 05:03:12 UTC


README

An add-on for the php-htmldiff library for comparing two HTML files/snippets and highlighting the differences using simple HTML.

This HTML Diff implementation leverages https://github.com/caxy/php-htmldiff - a PHP port of the ruby implementation found at https://github.com/myobie/htmldiff.

It extends php-htmldiff in a backward compatible way that

  • allows to run multiple diffs using the same instance of the class, which eases the integration as a service of dependency injection containers
  • provide an interface, which eases the integration as a service of dependency injection containers
  • discovers removals or additions of complete HTML sections

License

php-htmldiff-advanced is available under [GNU General Public License, version 2] (http://www.gnu.org/licenses/gpl-2.0.html).