All Projects → atomescrochus → laravel-string-similarities

atomescrochus / laravel-string-similarities

Licence: MIT License
Compare two string and get a similarity percentage

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to laravel-string-similarities

voyager-page-blocks
A module to provide page blocks for Voyager 📝
Stars: ✭ 80 (+48.15%)
Mutual labels:  laravel-package, laravel-5-package
artisan-shortcuts
🍰 Register shortcuts to execute multiple artisan commands
Stars: ✭ 56 (+3.7%)
Mutual labels:  laravel-package, laravel-5-package
laravel-ab
Laravel A/B experiment testing tool
Stars: ✭ 108 (+100%)
Mutual labels:  laravel-package, laravel-5-package
laravel-two-factor-authentication
A two-factor authentication package for Laravel >= 8
Stars: ✭ 37 (-31.48%)
Mutual labels:  laravel-package, laravel-5-package
laravel-crud-generator
Laravel CRUD Generator
Stars: ✭ 181 (+235.19%)
Mutual labels:  laravel-package, laravel-5-package
flash
An easy way for Laravel flash notifications.
Stars: ✭ 14 (-74.07%)
Mutual labels:  laravel-package, laravel-5-package
correios-consulta
Buscar informações de serviços dos correios diretamente nos sites deles, sem utilizar api de terceiros.
Stars: ✭ 155 (+187.04%)
Mutual labels:  laravel-package, laravel-5-package
Hooks
Hooks is a extension system for your Laravel application.
Stars: ✭ 202 (+274.07%)
Mutual labels:  laravel-package, laravel-5-package
maintenance-mode
An enhanced maintenance mode for Laravel.
Stars: ✭ 117 (+116.67%)
Mutual labels:  laravel-package, laravel-5-package
panichd
Ticketing system for Laravel 5.1 - 8.x. Allows to create new tickets via form only. Includes file attachments, ticket tags, filtering, scheduling and e-mail notifications.
Stars: ✭ 78 (+44.44%)
Mutual labels:  laravel-package, laravel-5-package
Laravel Gitscrum
GitScrum is a Project Management Tool, developed to help entrepreneurs, freelancers, managers, and teams Skyrocket their Productivity with the Agile methodology and Gamification.
Stars: ✭ 2,686 (+4874.07%)
Mutual labels:  laravel-package, laravel-5-package
smart-schema
A Laravel package to enable auto generation of forms
Stars: ✭ 18 (-66.67%)
Mutual labels:  laravel-package, laravel-5-package
Auth Tests
Always-current tests for Laravel's authentication system. Curated by the community.
Stars: ✭ 230 (+325.93%)
Mutual labels:  laravel-package, laravel-5-package
voyager-portfolio
A Portfolio Module for Laravel Voyager 💋
Stars: ✭ 15 (-72.22%)
Mutual labels:  laravel-package, laravel-5-package
Sneaker
An easy way to send emails whenever an exception occurs on server.
Stars: ✭ 223 (+312.96%)
Mutual labels:  laravel-package, laravel-5-package
sweetalert
Laravel 5 Package for SweetAlert2. Use this package to easily show sweetalert2 prompts in your laravel app.
Stars: ✭ 28 (-48.15%)
Mutual labels:  laravel-package, laravel-5-package
Voyager Hooks
Hooks system integrated into Voyager.
Stars: ✭ 200 (+270.37%)
Mutual labels:  laravel-package, laravel-5-package
Voyager Frontend
The Missing Front-end for The Missing Laravel Admin 🔥
Stars: ✭ 200 (+270.37%)
Mutual labels:  laravel-package, laravel-5-package
Laravel-Unsplash-Wrapper
A Laravel wrapper for Unsplash API's.
Stars: ✭ 21 (-61.11%)
Mutual labels:  laravel-package, laravel-5-package
devtube
Laravel YouTube and Online Video viewing and download interface.
Stars: ✭ 30 (-44.44%)
Mutual labels:  laravel-package, laravel-5-package

laravel-string-similarities

Latest Stable Version License Total Downloads

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.

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

Install

You can install this package via composer:

$ composer require atomescrochus/laravel-string-similarities

Then you have to install the package' service provider, unless you are running Laravel >=5.5 (it'll use package auto-discovery) :

// config/app.php
'providers' => [
    ...
    Atomescrochus\StringSimilarities\StringSimilaritiesServiceProvider::class,
];

Usage

$comparison = new \Atomescrochus\StringSimilarities\Compare();

// 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()"

// 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');

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

HELP NEEDED.

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].