| Recommend this page to a friend! |
| Info | Documentation | Reputation | Support forum | Blog | Links |
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not enough user ratings | Total: 52 | All time: 10,676 This week: 66 | ||||
| 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 |
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
| 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.