PHPackages                             bnbwebexpertise/laravel-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. [Database &amp; ORM](/categories/database)
4. /
5. bnbwebexpertise/laravel-couchdb

ActiveLibrary[Database &amp; ORM](/categories/database)

bnbwebexpertise/laravel-couchdb
===============================

CouchDB Provider for the Laravel 5.5+ family. Includes doctrine/couchdb as a dependency in composer.json and sets up a Laravel and Eloquent-friendly Service Provider for you. Enjoy!

1.0.2(7y ago)41054PHPPHP &gt;=7.0

Since Apr 3Pushed 7y ago4 watchersCompare

[ Source](https://github.com/bnbwebexpertise/laravel-couchdb)[ Packagist](https://packagist.org/packages/bnbwebexpertise/laravel-couchdb)[ RSS](/packages/bnbwebexpertise-laravel-couchdb/feed)WikiDiscussions master Synced yesterday

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

laravel-couchdb
===============

[](#laravel-couchdb)

CouchDB database driver for Laravel 5.5+

Dependencies
------------

[](#dependencies)

*laravel-couchdb* uses [doctrine/couchdb](https://github.com/doctrine/couchdb).

Installation
------------

[](#installation)

`composer require bnbwebexpertise/laravel-couchdb`.

For laravel 5.5 and older, add the service provider in `app/config/app.php`:

```
'Bnb\Laravel\CouchDb\CouchDbServiceProvider',
```

When using CouchDB connections, Laravel will automatically provide you with the corresponding CouchDB objects.

Configuration
-------------

[](#configuration)

Change your default database connection name in `app/config/database.php`:

```
'default' => 'couchdb',
```

And add a new couchdb connection:

```
'couchdb' => [
    'driver'   => 'couchdb',
    'type'     => 'socket',
    'host'     => 'localhost',
    'ip'       => null,
    'port'     => 5984,
    'dbname'   => 'database',
    'user'     => 'username',
    'password' => 'password',
    'ssl'      => false,
    'logging'  => false,
    'timeout'  => 15,
],
```

Examples
--------

[](#examples)

```
/**
 * @var \Bnb\Laravel\CouchDb\CouchDbConnection
 */
$connection = DB::connection('couchdb');

/**
 * @var \Doctrine\CouchDB\CouchDBClient
 */
$couchdb = $connection->getCouchDB();
```

**Create/Update/Find Document example**

```
$connection = DB::connection('couchdb');
$couchdb = $connection->getCouchDB();

list($id, $rev) = $connection->postDocument(array('foo' => 'bar'));
$couchdb->putDocument(array('foo' => 'baz'), $id, $rev);
$doc = DB::connection('couchdb')->findDocument($id);
```

All three methods can be called on $connection or $couchdb.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 55% 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 ~82 days

Total

2

Last Release

2878d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/08424532974ca17db79322a73bfc2a59ad82f01c98e4c9d004674afdcccce5a8?d=identicon)[gabsource](/maintainers/gabsource)

---

Top Contributors

[![defenestrator](https://avatars.githubusercontent.com/u/529446?v=4)](https://github.com/defenestrator "defenestrator (11 commits)")[![gabsource](https://avatars.githubusercontent.com/u/1851314?v=4)](https://github.com/gabsource "gabsource (9 commits)")

### Embed Badge

![Health badge](/badges/bnbwebexpertise-laravel-couchdb/health.svg)

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

###  Alternatives

[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[genealabs/laravel-pivot-events

This package introduces new eloquent events for sync(), attach(), detach() or updateExistingPivot() methods on BelongsToMany relation.

1404.9M8](/packages/genealabs-laravel-pivot-events)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)[aglipanci/laravel-eloquent-case

Adds CASE statement support to Laravel Query Builder.

115157.2k](/packages/aglipanci-laravel-eloquent-case)

PHPackages © 2026

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