qobo/cakephp-duplicates

This package is abandoned and no longer maintained. No replacement package was suggested.

Duplicates plugin for CakePHP

Installs: 21 687

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 15

Forks: 0

Open Issues: 1

Type:cakephp-plugin

v4.2.0 2020-07-07 13:37 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/config/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