PHPackages                             sn01615/couchdb-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. sn01615/couchdb-client

ActiveLibrary

sn01615/couchdb-client
======================

CouchDB Client library

v0.0.4(6y ago)026MITPHP

Since Apr 25Pushed 6y ago1 watchersCompare

[ Source](https://github.com/sn01615/couchdb-client)[ Packagist](https://packagist.org/packages/sn01615/couchdb-client)[ RSS](/packages/sn01615-couchdb-client/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

couchdb-client
==============

[](#couchdb-client)

CouchDB Client library

```
# 连接
$client = new CouchDBClient([
    'server' => 'http://127.0.0.1:5984'
]);

# 测试
$version = $client->get();

# 获取所有数据库
$dbs = $client->getAllDbs();

# 创建数据库
$result = $client->put($dbName);

# 获取数据库信息
$result = $client->get($dbName);

# 插入一个文档
$document = new stdClass();
$document->id = 123;
$document->text = "hello 中文";

$result = $client->setDbName($dbName)
    ->putDocument($testKey, $document);

# 更新一个文档
$document = new stdClass();
$document->id = 123;
$document->text = "hello 中文";
$document->_rev = $result->_rev;

$result = $client->setDbName($dbName)
    ->updateDocument($testKey, $document);

# 替换或插入一个文档
$document = new stdClass();
$document->id = 123;
$document->text = "hello 中文";

$result = $instance->setDbName($dbName)
    ->upsertDocument($testKey, $document);

# get uuid
$result = $instance->setDbName($dbName)->getUiid();

# 删除一个数据库
$result = $instance->delete($dbName);
```

###  Health Score

23

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2523d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6fd6cb8950d77fdebcef7c1cd1eac849e5610deddf19aa539f76b371ccaee152?d=identicon)[sn01615](/maintainers/sn01615)

---

Top Contributors

[![sn01615](https://avatars.githubusercontent.com/u/7794149?v=4)](https://github.com/sn01615 "sn01615 (7 commits)")

---

Tags

couchdb

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sn01615-couchdb-client/health.svg)

```
[![Health](https://phpackages.com/badges/sn01615-couchdb-client/health.svg)](https://phpackages.com/packages/sn01615-couchdb-client)
```

###  Alternatives

[phpfastcache/phpfastcache

PHP Abstract Cache Class - Reduce your database call using cache system. Phpfastcache handles a lot of drivers such as Apc(u), Cassandra, CouchBase, Couchdb, Dynamodb, Firestore, Mongodb, Files, (P)redis, Leveldb, Memcache(d), Ravendb, Ssdb, Sqlite, Wincache, Xcache, Zend Data Cache.

2.5k4.9M123](/packages/phpfastcache-phpfastcache)[dready92/php-on-couch

CouchDB NoSQL database access in PHP

24555.1k1](/packages/dready92-php-on-couch)[php-on-couch/php-on-couch

CouchDB NoSQL database access in PHP

108187.8k3](/packages/php-on-couch-php-on-couch)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
