A php implementation of the levenshtein distance without length limitation
A php implementation of the levenshtein distance without length limitations.
The installation of this library is made via composer and the autoloading of all classes of this library is made through their autoloader.
composer.pharfrom their website.
- Then run the following command to install this library as dependency :
php composer.phar php-extended/polyfill-str-levenshtein": "^1"
This library gives the function
str_levenshtein(?string $str1, ?string $str2) : int :
$distance = \str_levenshtein('toto', 'tata'); // $distance is 2
MIT (See license file).