PHP Classes

PHP Text Comparison: Compare two texts to find similar sentences

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 192 All time: 8,564 This week: 86Up
Version License PHP version Categories
text-comparison 1.0.0GNU Free Document...5Algorithms, PHP 5, Text processing


This class can compare two texts to find similar sentences.

It can take two text strings and compares them to determine how much each of the sentences in the texts are similar.

The class returns all sentences that have similarity level above a given percentage value also passed as parameter.

Picture of riccardo castagna
  Performance   Level  
Name: riccardo castagna is available for providing paid consulting. Contact riccardo castagna .
Classes: 7 packages by
Country: Italy Italy
Age: 55
All time rank: 100737 in Italy Italy
Week rank: 305 Up13 in Italy Italy Up
Innovation award
Innovation award
Nominee: 3x

Winner: 1x


check similariries between text files
i want to check different text documents to find similarities

  Files folder image Files  
File Role Description
Files folder imagelib (1 file)
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file index_2.php Example Example script
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file Doc. Documentation

  Files folder image Files  /  lib  
File Role Description
  Plain text file class.comparetext.php Class Class source

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:8,564
This week:86Up