Recommend this page to a friend! |
![]() ![]() |
Info | ![]() |
![]() |
![]() ![]() |
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";
![]() |
File | Role | Description | ||
---|---|---|---|---|
![]() |
||||
![]() ![]() |
Data | Auxiliary data | ||
![]() ![]() |
Lic. | License text | ||
![]() ![]() |
Doc. | Documentation |
![]() |
/ | src |
File | Role | Description |
---|---|---|
![]() |
Class | Class source |
![]() |
Class | Class source |
![]() |
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.