PHPackages                             gmg/laravel5-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. gmg/laravel5-couchdb

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

gmg/laravel5-couchdb
====================

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

0.0.3(8y ago)014PHP

Since Nov 11Pushed 8y ago1 watchersCompare

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

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

laravel5-couchdb
================

[](#laravel5-couchdb)

CouchDB database driver for Laravel 5

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

[](#dependencies)

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

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

[](#installation)

`composer require gmg/laravel5-couchdb`.

Add the service provider in `app/config/app.php`:

```
'gmg\Laravel5\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' => array(
    'driver'   => 'couchdb',
    'type'     => 'socket',
    'host'     => 'localhost',
    'ip'       => null,
    'port'     => 5984,
    'dbname'   => 'database',
    'user'     => 'username',
    'password' => 'password',
    'logging'  => false,
),
```

Examples
--------

[](#examples)

```
/**
 * @var \gmg\Laravel5\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

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 78.6% 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 ~175 days

Total

3

Last Release

3119d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/58cb8e0d96baf0819d7315eb83414cc45c523db3263dbf2dcd850baee07f3358?d=identicon)[gmgdeveloper](/maintainers/gmgdeveloper)

---

Top Contributors

[![defenestrator](https://avatars.githubusercontent.com/u/529446?v=4)](https://github.com/defenestrator "defenestrator (11 commits)")[![tommyready](https://avatars.githubusercontent.com/u/597594?v=4)](https://github.com/tommyready "tommyready (3 commits)")

### Embed Badge

![Health badge](/badges/gmg-laravel5-couchdb/health.svg)

```
[![Health](https://phpackages.com/badges/gmg-laravel5-couchdb/health.svg)](https://phpackages.com/packages/gmg-laravel5-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)
