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

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

defenestrator/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!

1617410PHP

Since Nov 11Pushed 9y ago4 watchersCompare

[ Source](https://github.com/defenestrator/laravel5-couchdb)[ Packagist](https://packagist.org/packages/defenestrator/laravel5-couchdb)[ RSS](/packages/defenestrator-laravel5-couchdb/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)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 defenestrator/laravel5-couchdb`.

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

```
'Defenestrator\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 \Defenestrator\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

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/529446?v=4)[Jeremy Jacob Anderson](/maintainers/defenestrator)[@defenestrator](https://github.com/defenestrator)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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