PHPackages                             ferdiunal/laravel-cache-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. ferdiunal/laravel-cache-couchdb

ActiveLibrary

ferdiunal/laravel-cache-couchdb
===============================

This package provides a cache store implementation for Laravel that uses a CouchDB database to store cached items. It supports both the default and tagged cache functionality of Laravel.

v0.1.1(3y ago)00[2 PRs](https://github.com/ferdiunal/laravel-cache-couchdb/pulls)MITPHPPHP ^8.1|^8.2

Since May 2Pushed 2y agoCompare

[ Source](https://github.com/ferdiunal/laravel-cache-couchdb)[ Packagist](https://packagist.org/packages/ferdiunal/laravel-cache-couchdb)[ Docs](https://github.com/ferdiunal/laravel-cache-couchdb)[ RSS](/packages/ferdiunal-laravel-cache-couchdb/feed)WikiDiscussions main Synced 1mo ago

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

Laravel CouchDB Cache Driver
============================

[](#laravel-couchdb-cache-driver)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9461bbbdd17b4d74f0bc4bd8086e32383e76274921c5c50002cc33f36072c8e0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6665726469756e616c2f6c61726176656c2d63616368652d636f75636864622e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ferdiunal/laravel-cache-couchdb)[![GitHub Tests Action Status](https://camo.githubusercontent.com/0ff9d548744758746ee6b1e3da631a42cf055159cabc137801d0aba01e4a079b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6665726469756e616c2f6c61726176656c2d63616368652d636f75636864622f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/ferdiunal/laravel-cache-couchdb/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/98b483d11d2f8388743573a405f664652c38ac9eb63160a9a752ec74c80ca43b/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6665726469756e616c2f6c61726176656c2d63616368652d636f75636864622f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/ferdiunal/laravel-cache-couchdb/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/e26d0638c02dc4b5f38bb5ebee192806520a18590f73b10051772cd661e191f1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6665726469756e616c2f6c61726176656c2d63616368652d636f75636864622e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ferdiunal/laravel-cache-couchdb)

This package provides a cache store implementation for Laravel that uses a CouchDB database to store cached items. It supports both the default and tagged cache functionality of Laravel.

Requirements
------------

[](#requirements)

This package requires the following:

- PHP &gt;= 8.2
- Laravel &gt;= 9.0
- A CouchDB instance

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

[](#installation)

You can install this package via Composer. Run the following command:

```
composer require ferdiunal/laravel-couchdb-cache
```

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

[](#configuration)

To use the CouchDB cache driver, you will need to add it to the `config/cache.php` file as follows:

```
'default' => env('CACHE_DRIVER', 'file'),
...
'couchdb' => [
    'driver' => 'couchdb',
    'host' => env('COUCHDB_HOST', 'localhost'),
    'port' => env('COUCHDB_PORT', 5984),
    'user' => env('COUCHDB_USERNAME', null),
    'password' => env('COUCHDB_PASSWORD', null),
    'ip' => env('COUCHDB_IP', null),
    'ssl' => env('COUCHDB_SSL', false),
    'path' => env('COUCHDB_PATH', null),
    'logging' => env('COUCHDB_LOGGING', false),
    'timeout' => env('COUCHDB_TIMEOUT', 0.01),
    'dbname' => env('COUCHDB_DATABASE', 'your_database_name'),
    'prefix' => env('CACHE_PREFIX', 'your_cache_prefix'),
];
```

You can then set the `CACHE_DRIVER` environment variable to `'couchdb'` to use the CouchDB cache driver.

Usage
-----

[](#usage)

After the configuration is set up, you can use the CouchDB cache driver in your Laravel application as you would any other cache driver. Here are a few examples:

```
// Store an item in the cache for 10 minutes
Cache::put('key', 'value', 10);

// Retrieve an item from the cache by key
$value = Cache::get('key');

// Retrieve multiple items from the cache by keys
$values = Cache::many(['key1', 'key2']);

// Increment the value of an item in the cache
Cache::increment('key');

// Decrement the value of an item in the cache
Cache::decrement('key');

// Remove an item from the cache
Cache::forget('key');

// Remove all items from the cache
Cache::flush();
```

Tagged Cache
------------

[](#tagged-cache)

The CouchDB cache driver also supports the tagged cache functionality of Laravel. Here are a few examples:

```
// Store an item in the cache with a tag
Cache::tags(['tag1', 'tag2'])->put('key', 'value', 10);

// Retrieve all items with a tag
Cache::tags('tag1')->get('key');

// Remove all items with a tag
Cache::tags('tag1')->flush();
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Ferdi ÜNAL](https://github.com/ferdiunal)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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 ~0 days

Total

2

Last Release

1104d ago

PHP version history (2 changes)v0.1.0PHP ^8.2

v0.1.1PHP ^8.1|^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/51f5bc45a8653e16229499476a51988197350c7648ec3b961c62c45cc92d8872?d=identicon)[ferdiunal](/maintainers/ferdiunal)

---

Top Contributors

[![ferdiunal](https://avatars.githubusercontent.com/u/5059851?v=4)](https://github.com/ferdiunal "ferdiunal (5 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (3 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")

---

Tags

couchdblaravellaravel-cache-couchdblaravel-couchdbphp-couchdblaravelferdiunallaravel-cache-couchdb

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[musahmusah/laravel-multipayment-gateways

A Laravel Package that makes implementation of multiple payment Gateways endpoints and webhooks seamless

852.2k1](/packages/musahmusah-laravel-multipayment-gateways)

PHPackages © 2026

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