KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
First off, this is an exact duplicate of these four questions: Highlight the difference between two strings in PHP JavaScript based diff utility How to do text DIFF using PHP? Calculate text diffs in PHP It seems as though times have changed since these questions were first asked and I am wondering what is a good tool now-a-days for this sort of comparison? I have looked at (additionally to those questions): https://github.com/nuxodin/diff_match_patch-php http://pear.php.net/package/Text_Diff https://github.com/paulgb/simplediff/blob/5bfe1d2a8f967c7901ace50f04ac2d9308ed3169/simplediff.php http://www.raymondhill.net/finediff/viewdiff-ex.php But all of the ones I get are either unmantained now or seem a little dodgy in that they are not used that much (and some even hint that they are not very performant) and the PEAR one worries me. I hate to install PEAR for one little module not only that but it seems like throwing a brick through my own window to install it for such a small module in comparison to PEAR in general not only that but the module has been superseded and placed on a different channel (dunno
Tags (comma-separated)
Save Edits
Cancel