relaxedws / replicator
couchdb-replicator
Installs: 694 592
Dependents: 0
Suggesters: 0
Security: 0
Stars: 19
Watchers: 5
Forks: 8
Open Issues: 4
Requires
Requires (Dev)
- phpunit/phpunit: 4.8.*
This package is auto-updated.
Last update: 2024-10-29 04:41:57 UTC
README
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();