PHPackages                             sinri/ark-couchdb - 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. sinri/ark-couchdb

ActiveLibrary

sinri/ark-couchdb
=================

The CouchDB component for Ark 2

1.1.0(7y ago)03MITPHP

Since Sep 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/sinri/Ark-CouchDB)[ Packagist](https://packagist.org/packages/sinri/ark-couchdb)[ RSS](/packages/sinri-ark-couchdb/feed)WikiDiscussions master Synced today

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

Ark-CouchDB
===========

[](#ark-couchdb)

The CouchDB component for Ark 2

[CouchDB](http://couchdb.apache.org/) is a NoSQL database providing HTTP API to serve clients. This library provided raw API client (with cURL) and entity class to cover basic use. Now it is not fully accomplished, only base requirement considered.

Agent
-----

[](#agent)

To connect to the CouchDB instance, you must establish an `ArkCouchDBAgent` class with connection arguments.

```
$agent = new \sinri\ark\database\couchdb\ArkCouchDBAgent($host, $port, $username, $password);
```

Each API request is independent, so you can share this agent instance anywhere in your project.

API Client
----------

[](#api-client)

All CouchDB APIs are requested through HTTP by cURL. For the request and response, two class defined, `ArkCouchDBRequest` and `ArkCouchDBResponse`. The two classes are use by the extended classes of `ArkCouchDBAbstractApi`, which provided a method `callApi`. This method receives a request instance and would output a response instance.

### Request

[](#request)

You should set request with those properties,

- $api; The sub URL for the API.
- $method; The constant defined for METHOD.
- $headers; The headers, as an associated array.
- $queries; The queries, as an associated array.
- $body; The body. If type is of a JSON, you can set it as an array or object.
- $bodyType; The constant defined for METHOD.

### Response

[](#response)

Response is simple, you can get the response HTTP code and headers, and the raw text and parsed json object (as array).

### Implemented API

[](#implemented-api)

Four kinds of API clients are provided,

- Server
- Database
- Document
- DesignDoc

You can check each PHPDoc for use and see the original doc online by reference tag.

Object Entities
---------------

[](#object-entities)

Alike PDO, two kinds of object entities designed. One for database and one for documents. You must extend them before use.

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

 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

Every ~119 days

Total

2

Last Release

2678d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f21c380187798de639192557cfc054683355c6f8c1649cff213fee795590831?d=identicon)[sinri](/maintainers/sinri)

---

Top Contributors

[![sinri](https://avatars.githubusercontent.com/u/5821330?v=4)](https://github.com/sinri "sinri (9 commits)")

### Embed Badge

![Health badge](/badges/sinri-ark-couchdb/health.svg)

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

PHPackages © 2026

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