Character-wise string diff in PHP

前端 未结 4 1128
北恋
北恋 2021-02-10 19:56

In short I am looking for something like google-diff-match-patch in PHP.

I have had a look at some similar questions at SO, and also at the algorithm provided here, but

相关标签:
4条回答
  • 2021-02-10 20:23

    The PEAR Package Text_Diff provides Inline-Diffs.

    0 讨论(0)
  • 2021-02-10 20:41

    There is a php version of google-diff-match-patch available here: https://github.com/nuxodin/diff_match_patch-php

    0 讨论(0)
  • 2021-02-10 20:44

    https://github.com/gorhill/PHP-FineDiff supports character-wise diff and can render the differences in HTML

    0 讨论(0)
  • 2021-02-10 20:47

    There is a port of fresh version google-diff-match-patch library. It is much faster than previous and have no problems wth utf8.

    0 讨论(0)
提交回复
热议问题