2017 © Pedro Peláez
 

library laravel-string-similarities

Compare two string and get a similarity percentage

image

atomescrochus/laravel-string-similarities

Compare two string and get a similarity percentage

  • Monday, October 9, 2017
  • by atomescrochus
  • Repository
  • 4 Watchers
  • 31 Stars
  • 1,971 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 10 Versions
  • 35 % Grown

The README.md

laravel-string-similarities

Latest Stable Version License Total Downloads, (*1)

Compare two string and get a similarity percentage. Note that I did not write the algorithms myself, see down this document for the full credits., (*2)

Some methods are usable in production, some are not, see usage for informations. Pull requests are more than welcomed!, (*3)

Install

You can install this package via composer:, (*4)

``` bash $ composer require atomescrochus/laravel-string-similarities, (*5)


Then you have to install the package' service provider, _unless you are running Laravel >=5.5_ (it'll use package auto-discovery) : ```php // config/app.php 'providers' => [ ... Atomescrochus\StringSimilarities\StringSimilaritiesServiceProvider::class, ];

Usage

``` php $comparison = new \Atomescrochus\StringSimilarities\Compare();, (*6)

// the functions returns similarity percentage between strings $jaroWinkler = $comparison->jaroWinkler('first string', 'second string'); // JaroWinkler comparison $levenshtein = $comparison->levenshtein('first string', 'second string'); // Levenshtein comparison $smg = $comparison->smg('first string', 'second string'); // Smith Waterman Gotoh comparison $similar = $comparison->similarText('first string', 'second string'); // Using "similar_text()", (*7)

// This next one will return an array containing the results of all working comparison methods // plus an array of 'data' that includes the first and second string, and the time in second it took to run all // comparison. BE AWARE that comparing long string can results in really long compute time! $all = $comparison->all('first string', 'second string'); ```, (*8)

Change log

Please see CHANGELOG for more information on what has changed recently., (*9)

Testing

HELP NEEDED., (*10)

Contributing

Please see CONTRIBUTING and CONDUCT for details., (*11)

Security

If you discover any security related issues, please email jp@atomescroch.us instead of using the issue tracker., (*12)

Credits

License

The MIT License (MIT). Please see License File for more information., (*13)

The Versions

09/10 2017

dev-master

9999999-dev https://github.com/atomescrochus/laravel-string-similarities

Compare two string and get a similarity percentage

  Sources   Download

MIT

The Requires

 

The Development Requires

string atomescrochus comparison levenshtein laravel-string-similarities jaro winkler smith waterman gotoh

09/10 2017

1.3.2

1.3.2.0 https://github.com/atomescrochus/laravel-string-similarities

Compare two string and get a similarity percentage

  Sources   Download

MIT

The Requires

 

The Development Requires

string atomescrochus comparison levenshtein laravel-string-similarities jaro winkler smith waterman gotoh

09/10 2017

dev-develop

dev-develop https://github.com/atomescrochus/laravel-string-similarities

Compare two string and get a similarity percentage

  Sources   Download

MIT

The Requires

 

The Development Requires

string atomescrochus comparison levenshtein laravel-string-similarities jaro winkler smith waterman gotoh

09/10 2017

1.3.1

1.3.1.0 https://github.com/atomescrochus/laravel-string-similarities

Compare two string and get a similarity percentage

  Sources   Download

MIT

The Requires

 

The Development Requires

string atomescrochus comparison levenshtein laravel-string-similarities jaro winkler smith waterman gotoh

09/10 2017

1.3.0

1.3.0.0 https://github.com/atomescrochus/laravel-string-similarities

Compare two string and get a similarity percentage

  Sources   Download

MIT

The Requires

 

The Development Requires

string atomescrochus comparison levenshtein laravel-string-similarities jaro winkler smith waterman gotoh

21/04 2017

1.2.0

1.2.0.0 https://github.com/atomescrochus/laravel-string-similarities

Compare two string and get a similarity percentage

  Sources   Download

MIT

The Requires

 

The Development Requires

string atomescrochus comparison levenshtein laravel-string-similarities jaro winkler smith waterman gotoh

11/01 2017

1.1.0

1.1.0.0 https://github.com/atomescrochus/laravel-string-similarities

Compare two string and get a similarity percentage

  Sources   Download

MIT

The Requires

 

The Development Requires

string atomescrochus comparison levenshtein laravel-string-similarities jaro winkler smith waterman gotoh

11/01 2017

1.0.1

1.0.1.0 https://github.com/atomescrochus/laravel-string-similarities

Compare two string and get a similarity percentage

  Sources   Download

MIT

The Requires

 

The Development Requires

string atomescrochus comparison levenshtein laravel-string-similarities jaro winkler smith waterman gotoh

08/01 2017

1.0.0

1.0.0.0 https://github.com/atomescrochus/laravel-string-similarities

Compare two string and get a similarity percentage

  Sources   Download

MIT

The Requires

 

The Development Requires

string atomescrochus comparison levenshtein laravel-string-similarities jaro winkler smith waterman gotoh

08/01 2017

0.0.1

0.0.1.0 https://github.com/atomescrochus/laravel-string-similarities

Compare two string and get a similarity percentage

  Sources   Download

MIT

The Requires

 

The Development Requires

string atomescrochus comparison levenshtein laravel-string-similarities jaro winkler smith waterman gotoh