Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (6) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2023-12-23 (5 months ago) | Not enough user ratings | Total: 52 | All time: 10,642 This week: 673 |
Version | License | PHP version | Categories | |||
php-similarity-check 1.0 | MIT/X Consortium ... | 7 | Algorithms, User Management, Text pro..., V..., P... |
PHP class to check the similarity between two items
Installation Guide via Composer:
composer require nanoblocktech/php-similarity-check
Initalize class
use Luminova\ExtraUtils\SimilarityChecker\Check;
Check similarity score between two names
$check = new Check();
try {
$score = $check->name('Peter Foo', 'Paul Foo');
echo "Percentage: {$score->getRate()}%\n";
echo "Ratio: {$distance->getRatio()}\n";
} catch (InvalidArgumentException $e){
echo $e->getMessage();
}
Check similarity score between two string
$score = Check::compare('Foo', 'Faa');
echo "Percentage: {$score->getRate()}%\n";
echo "Ratio: {$distance->getRatio()}\n";
Files |
File | Role | Description | ||
---|---|---|---|---|
src (3 files) | ||||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Files | / | src |
File | Role | Description |
---|---|---|
Check.php | Class | Class source |
Score.php | Class | Class source |
Validation.php | Class | Class source |
php-similarity-check-2023-12-23.zip 3KB | |
php-similarity-check-2023-12-23.tar.gz 2KB | |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.