levenshtein
![Software License][ico-license]
[![Coverage Status][ico-coveralls]][link-coveralls]
, (*1)
Plain PHP implementation of the Levenshtein distance.
* No 255 characters limit
* Works with UTF-8
* Accepts float as custom costs, (*2)
Install
Via Composer, (*3)
``` bash
$ composer require gordonlesti/levenshtein, (*4)
## Usage
``` php
use GordonLesti\Levenshtein\Levenshtein;
With default default costs., (*5)
``` php
$levDist = Levenshtein::levenshtein("AC", "ABAA");, (*6)
With insert cost `7.7`, replace cost `9.4` and delete cost `2.5`.
``` php
$levDist = Levenshtein::levenshtein("ACCB", "BC", 7.7, 9.4, 2.5);
Change log
Please see CHANGELOG for more information on what has changed recently., (*7)
Testing
bash
$ composer test, (*8)
Contributing
Please see CONTRIBUTING and CONDUCT for details., (*9)
Security
If you discover any security related issues, please email info@gordonlesti.com instead of using the issue tracker., (*10)
Credits
License
The MIT License (MIT). Please see License File for more information., (*11)