Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Latest commit

 

History

History
21 lines (15 loc) · 633 Bytes

README.md

File metadata and controls

21 lines (15 loc) · 633 Bytes

Build Status

couchdb-replicator

CouchDB Replicator implemented with PHP

Example usage

require __DIR__ . '/vendor/autoload.php';

use Doctrine\CouchDB\CouchDBClient;
use Relaxed\Replicator\ReplicationTask;
use Relaxed\Replicator\Replicator;

$source = CouchDBClient::create(['dbname' => 'source']);
$target = CouchDBClient::create(['dbname' => 'target']);

$task = new ReplicationTask();
$replicator = new Replicator($source, $target, $task);

$response = $replicator->startReplication();