PHP Classes

Very Simple Diff: Compare two strings and return the differences

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 366 All time: 6,851 This week: 78Up
Version License PHP version Categories
very-simple-diff 1.5GNU General Publi...5.0Text processing
Description 

Author

This class can be used to compare two strings and return the differences.

It splits two strings in lines and compare the lines to determine the differences.

The class returns two arrays that tell which lines would need to be added or removed to turn the first string into the second string.

Picture of Tom Parkison
Name: Tom Parkison <contact>
Classes: 2 packages by
Country: United States United States

  Files folder image Files (1)  
File Role Description
Plain text file verySimpleDiff.class.php Class The core class file.

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:366
This week:0
All time:6,851
This week:78Up