🍰 CakePHP 3 plugin for processing duplicate records
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
src
tests
webroot
.bettercodehub.yml
.codeclimate.yml
.editorconfig
.gitignore
.stickler.yml
.travis.yml
LICENSE
README.md
composer.json
phpcs.xml.dist
phpunit.xml.dist

README.md

Duplicates plugin for CakePHP

Build Status Latest Stable Version Total Downloads Latest Unstable Version License codecov BCH compliance

About

CakePHP 3 plugin for handling duplicated system records.

This plugin is developed by Qobo for Qobrix. It can be used as standalone CakePHP plugin, or as part of the project-template-cakephp installation.

Installation

You can install this plugin into your CakePHP application using composer.

The recommended way to install composer packages is:

composer require qobo/cakephp-duplicates

Setup

Load plugin

bin/cake plugin load --routes --bootstrap Qobo/Duplicates

Configuration

Sample duplicates configuration:

// config/Modules/Articles/duplicates.json
{
    "byTitle": [
        { "field": "title", "filter": "Qobo\\Duplicates\\Filter\\ExactFilter" }
    ],
    "byBody": [
        { "field": "body", "filter": "Qobo\\Duplicates\\Filter\\StartsWithFilter", "length": 8 }
    ]
}

Mapping duplicates

To map all duplicate records you need to run the following shell command:

./bin/cake map_duplicates