This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
You can install the package via composer:
composer require getcodedev/test-levenshtein
You can publish and run the migrations with:
php artisan vendor:publish --tag="test-levenshtein-migrations"
php artisan migrate
$duplicates = check_duplicates(
model: User::class,
search: [
'first_name' => 'John',
'home' => [
'address' => "bbbbb, rrr BB, 77777",
],
],
concat_search_columns: [
'home' => [
'address' => 'homes.street, homes.city homes.state, homes.zip',
],
],
priority_columns: [
'homes.address',
'users.first_name',
],
with_similarity_min_common: 50,
limit: 10
);
# 1. clone this package && run composer install
composer install
# 2. Then need to set configs for mysql connection in phpunit.xml
cp phpunit.xml.dist phpunit.xml
# 3. Run tests
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.