Simple API that wraps around CouchDBs HTTP API.
- Create, Delete Databases
- Create, Update, Delete Documents
- Bulk API for Creating/Updating Documents
- Find Documents by ID
- Generate UUIDs
- Query
_all_docs
view - Query Changes Feed
- Compaction Info and Triggering APIs
- Replication API
- Symfony Console Commands
With Composer:
{
"require": {
"doctrine/couchdb": "@dev"
}
}
<?php
$client = \Doctrine\CouchDB\CouchDBClient::create();
array($id, $rev) = $client->postDocument(array('foo' => 'bar'));
$client->putDocument(array('foo' => 'baz'), $id, $rev);
$doc = $client->findDocument($id);