Recommend this page to a friend! |
Download |
Info | Documentation | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2023-12-23 (9 months ago) | Not enough user ratings | Total: 52 | All time: 10,661 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";
Files (6) |
File | Role | Description | ||
---|---|---|---|---|
src (3 files) | ||||
composer.json | Data | Auxiliary data | ||
LICENSE | Lic. | License text | ||
README.md | Doc. | Documentation |
Files (6) | / | src |
File | Role | Description |
---|---|---|
Check.php | Class | Class source |
Score.php | Class | Class source |
Validation.php | 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. |
Install with Composer |
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.