2017 © Pedro Peláez
 

library levenshtein

image

gordonlesti/levenshtein

  • Wednesday, February 8, 2017
  • by gordonlesti
  • Repository
  • 1 Watchers
  • 4 Stars
  • 115 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 53 % Grown

The README.md

levenshtein

Latest Version on Packagist ![Software License][ico-license] Build Status [![Coverage Status][ico-coveralls]][link-coveralls] Total Downloads, (*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)

The Versions