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

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

afarazit/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.1(9y ago)026PHP

Since Jan 18Pushed 9y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (2)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

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% 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

3449d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1217574?v=4)[Antonis Farangitakis](/maintainers/afarazit)[@afarazit](https://github.com/afarazit)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k29.9M42](/packages/kirschbaum-development-eloquent-power-joins)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8723.1M23](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.4M2](/packages/glushkovds-phpclickhouse-laravel)[clickbar/laravel-magellan

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

438834.4k1](/packages/clickbar-laravel-magellan)[laravel-liberu/laravel-gedcom

A package that converts gedcom files to Eloquent models

782.5k1](/packages/laravel-liberu-laravel-gedcom)

PHPackages © 2026

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