Docs · Laravel Dedupe · Open source
Installation
8 pages in this guide
Start here
Basic usage
Reference
Requirements
- PHP 8.2 or higher, with the
mbstringextension - Laravel 11.33.2 or higher, 12 or 13 (Laravel 13 needs PHP 8.3)
The Deduper class works in plain PHP. The config file, the audit table and the Dedupe facade are only used in a Laravel app.
Installing the package
You can install the package via composer and run the migration:
composer require keaton-php/laravel-dedupe
php artisan migrate
The service provider is discovered automatically. The migration creates the dedupe_audit_entries table that the database audit store writes to. You can skip it if you only use the in-memory store, or no store at all.
Compatibility
The test suite runs on PHP 8.2 to 8.4 and Laravel 11 to 13, against SQLite. MySQL and PostgreSQL are not part of the CI matrix.
This page is docs/02-installation.md in the package. Every PHP example on it is run by the package's tests, and the output shown is what it printed.