Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Php Htmldiff Laravel Package

caxy/php-htmldiff

Compare two HTML snippets/files and generate a marked-up diff highlighting insertions, deletions, and changes. Easy Composer install, simple API (HtmlDiff->build()), configurable behavior and CSS-friendly output; includes a live demo and Symfony bundle option.

View on GitHub
Deep Wiki
Context7
v0.1.14

Full Changelog

Changes:

This release mainly removed everything that is related to the concept of special-case-tags. This was adopted from the original library by rashid2538 that this fork is based on.

The feature tried to wrap the special tags in an extra <ins / del class='mod'> tag. However, this never really worked properly (the closing tag was not always added to the diff output) and usually ended up crippling the HTML.

Given the feature never really worked, and there is no clear use-case for it, I decided to remove it and fix issue 106 and issue 69 in the process where it was sometimes impossible to diff html that contained these special tags or unexpected extra tags got added to the output.

In case you really needed this feature, please open an issue explaining your use-case, in that case this decision can be revisited.

  • Deprecated all setSpecialCaseTags() config calls. There is no replacement, but the current expectation is that nobody ever used these calls anyway.
  • Fixed Issue 106 / 69 by removing special-case-tags from the codebase
  • Reduced the CRAP score of insertTag() by allot
v0.1.13

Full Changelog

Changes:

  • Add .gitattributes file to exclude demo and tests from the exported zip package to reduce package size when installed via composer (#86 - @danepowell). This means demo/ and tests/ will no longer be included in the installed package files. In theory this shouldn't be a breaking change, but it could be if you are depending on or referencing any files from those directories.
v0.1.12

Full Changelog

Changes:

  • Word parser is rebuild to improve performance by 98% (according to xhprof profiler) and reducing code complexity.
  • Whitespace checking improvements in match finding algorithm to improve performance by allot, up to 50% in some of my testing
v0.1.11

Full Changelog

Changes:

  • Fixed a bug where self-closing tags got crippled in HtmlDiff
  • Ported ListDiff from SimpleXML to DOMDocument
  • Cleanup of old list diff algorithm
  • Possibility to disable html-purifier using a config flag
  • Removed dependency php-simple-html-dom-parser
v0.1.10

Full Changelog

Important:

In order to be compatible with PHP8 we had to upgrade some vendor packages.

Since these vendor packages have dropped support for older versions of PHP we had todo the same, therefore this version is not compatible anymore with PHP versions prior to 7.3.

In case you are not able to upgrade your PHP version, please pin version v0.1.9 of php-htmldiff in your composer config.

Changes:

  • Fixed the keywords that made this version incompatible with PHP8
  • Upgraded PHPUnit dependencies with a PHP8 compatible version
v0.1.9

Full Changelog

Merged pull requests:

v0.1.8

Full Changelog

Implemented enhancements:

  • Possible diff algorithm improvement #46
  • encoding #22
  • Resolve PHP 7.3 compatibility issue to fix #79 #80 (irkallacz)

Closed issues:

  • Does not work on PHP 7.3 #79
  • Latest release can cause segmentation faults #74
  • Different results #73
v0.1.7

Full Changelog

Fixed bugs:

  • Fix issues with unicode characters - fixes #71 #72 (iluuu1994)

Closed issues:

  • Encoding issues with umlauts #71
  • Slow diff even on small text input #70
v0.1.6

Full Changelog

Closed issues:

  • Bug - bad comparison between words containing accented characters #66

Merged pull requests:

  • Fixed warnings "count(): Parameter must be an array... #65 (yojick)
v0.1.5

Full Changelog

Fixed bugs:

  • Crashes if string contains "Р" character (uppercase cyrillic Р letter) #58

Closed issues:

  • Does not work on PHP 5.3.10 #61

Merged pull requests:

v0.1.4

Full Changelog

Merged pull requests:

  • changes the [] arrays to array() as it does not work in php 5.3 #62 (myfriend12)
v0.1.3

Full Changelog

Implemented enhancements:

Closed issues:

  • Performance #38

Merged pull requests:

  • Differ crashed when comparing regular space character in table column. #55 (SavageTiger)
v0.1.2

Full Changelog

Implemented enhancements:

  • Diff styling for the demo #45
  • Implement new List Diffing algorithm for matching #49 (jschroed91)
  • Improve list diffing for lists with removed list items #48 (jschroed91)
  • Cleanup CSS and add styles for highlighting differences (#45) #47 (jschroed91)
  • Add method to clear content on AbstractDiff objects #44 (jschroed91)
  • Add support for diffing img elements #36 (jschroed91)

Fixed bugs:

Closed issues:

  • Config object not properly used when using the HtmlDiffBundle service #51

Merged pull requests:

  • Remove unused ListDiff class and rename ListDiffNew to ListDiff #43 (jschroed91)
  • Run php-cs-fixer on lib directory #42 (jschroed91)
v0.1.1

Full Changelog

Implemented enhancements:

Merged pull requests:

  • Update the README and add additional documentation #34 (jschroed91)
0.1.0

Full Changelog

Implemented enhancements:

  • Detecting link changes #28
  • Allow the list match threshold percentage (ListDiff::$listMatchThreshold) to be configured #18
  • Allow $isolatedDiffTags to be configured on HtmlDiff #13
  • Create configuration class for HtmlDiff config options #32 (jschroed91)

Merged pull requests:

  • Allow caching of the calculated diffs using a doctrine cache provider #33 (jschroed91)
0.1.0-beta.1

Full Changelog

Merged pull requests:

0.0.14

Full Changelog

Fixed bugs:

  • Fix HtmlDiff matching logic skipping over single word matches #25 (jschroed91)
0.0.13

Full Changelog

Fixed bugs:

  • Misc. list diffing updates and fixes #24 (jschroed91)
  • Updated list diff class to maintain the tags on lists. #23 (adamCaxy)
0.0.12

Full Changelog

Fixed bugs:

0.0.11

Full Changelog

Merged pull requests:

0.0.10

Full Changelog

Fixed bugs:

  • Fix: Updated code so that null is not given in list formatting. #17 (adamCaxy)
0.0.9

Full Changelog

Fixed bugs:

  • Missed an array_column in ListDiff. Updated to use ArrayColumn function. #16 (jschroed91)
0.0.8

Full Changelog

Fixed bugs:

  • Added update for php versions that do not have array_column as a function. #15 (jschroed91)
0.0.7

Full Changelog

Implemented enhancements:

  • Created ListDiff class to handle diffing of lists. #14 (adamCaxy)
0.0.6

Full Changelog

Implemented enhancements:

  • ICC-4313 | ICC-4314 | Replace Special HTML Elements with placeholder tokens and update diffing logic #11 (usaqlein)

Merged pull requests:

0.0.5

Full Changelog

Implemented enhancements:

0.0.4

Full Changelog

Fixed bugs:

  • Check for empty oldText or newText before processing del or ins in processReplaceOperation #9 (jschroed91)
0.0.3

Full Changelog

Implemented enhancements:

  • Add option to insert a space between del and ins tags #8 (jschroed91)
  • Updated demo to accept input and diff on the fly #5 (jschroed91)
0.0.2

Full Changelog

Implemented enhancements:

  • Break out HTML content to individual HTML, CSS, JS files #6 (mgersten-caxy)

Fixed bugs:

  • Fix error caused when passing empty array into setSpecialCaseTags #7 (jschroed91)
0.0.1

Implemented enhancements:

  • Added static properties for the default config variables #4 (jschroed91)
  • Added option to group together diffed words in output #2 (jschroed91)

Merged pull requests:

* This Change Log was automatically generated by github_changelog_generator

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours