qobo/cakephp-duplicates

Duplicates plugin for CakePHP

Installs: 6 972

Dependents: 0

Suggesters: 0

Stars: 0

Watchers: 9

Forks: 0

Open Issues: 0

Type:cakephp-plugin

v4.0.0 2019-01-25 10:13 UTC

README

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