qobo / cakephp-duplicates
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
Requires
- qobo/cakephp-utils: ^13.0
Requires (Dev)
- qobo/cakephp-composer-dev: ^v1.0
README
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