Download the PHP package aheenam/similar-string without Composer
On this page you can find all versions of the php package aheenam/similar-string. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aheenam/similar-string
More information about aheenam/similar-string
Files in aheenam/similar-string
Package similar-string
Short Description Find level of similarity between strings based on Dice's Coefficient
License MIT
Informations about the package similar-string
Similar String
Find level of similarity between strings based on Dice's Coefficient.
Installation
Install the package by running
Usage
This package contains two classes, one for calculating Dice's Coefficient of two strings and another working with this value.
Dice's Coefficient
Similar Strings
This class provides 2 different methods:
orderBySimilarity($string, $similarStrings = [])
This method orders the strings in $similarStrings
by their Dice-Coefficient when compared to $string
findMostSimilar($string, $similarStrings = [])
This methods returns the best match for $string
out of $similarStrings
Changelog
Check CHANGELOG for the changelog
Testing
To run tests use
If you are working on a windows machine use
Contributing
Information will follow soon
Security
If you discover any security related issues, please email [email protected] or use the issue tracker of GitHub.
About
Aheenam is a small company from NRW, Germany creating custom digital solutions. Visit our website to find out more about us.
License
The MIT License (MIT). Please see License File for more information.