PHPackages                             fiskie/mongostash - 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. fiskie/mongostash

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

fiskie/mongostash
=================

MongoDB Driver for Stash.

1.0.4(8y ago)164BSD-3-ClausePHPPHP ^5.4|^7.0

Since Jan 29Pushed 8y ago1 watchersCompare

[ Source](https://github.com/fisuku/mongostash)[ Packagist](https://packagist.org/packages/fiskie/mongostash)[ Docs](http://github.com/fiskie/mongostash)[ RSS](/packages/fiskie-mongostash/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (2)Dependencies (2)Versions (8)Used By (0)

MongoDB Driver for Stash
========================

[](#mongodb-driver-for-stash)

This is a MongoDB Driver for [Stash](https://github.com/tedious/Stash), supporting MongoClient and the new-style MongoDB library.

This enables you to use a persistent and distributed store as your cache driver, which can be ideal for homogenic and distributed systems.

Usage
-----

[](#usage)

```
$mongo = new \MongoClient(); // Whatever it is you are doing to create your Mongo client instance

$pool = new \Stash\Pool(new \MongoStash\MongoDB([
    'mongo' => $mongo,
    'database' => 'local',
    'collection' => 'stash.store' // This is optional, stash.store is the default.
]));

```

And you are ready to go.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity63

Established project with proven stability

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

Recently: every ~123 days

Total

7

Last Release

3266d ago

Major Versions

0.1.3 → 1.0.02016-01-29

### Community

Maintainers

![](https://www.gravatar.com/avatar/10fa3c8961248118241ba63d476e8bd5fc54fe67b5710bd676383d3ceb1d1f59?d=identicon)[fisk](/maintainers/fisk)

---

Tags

cachecachingmongodbmongostash

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fiskie-mongostash/health.svg)

```
[![Health](https://phpackages.com/badges/fiskie-mongostash/health.svg)](https://phpackages.com/packages/fiskie-mongostash)
```

###  Alternatives

[phpfastcache/phpfastcache

PHP Abstract Cache Class - Reduce your database call using cache system. Phpfastcache handles a lot of drivers such as Apc(u), Cassandra, CouchBase, Couchdb, Dynamodb, Firestore, Mongodb, Files, (P)redis, Leveldb, Memcache(d), Ravendb, Ssdb, Sqlite, Wincache, Xcache, Zend Data Cache.

2.4k5.0M130](/packages/phpfastcache-phpfastcache)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k7.2M71](/packages/mongodb-laravel-mongodb)[apix/cache

A thin PSR-6 cache wrapper with a generic interface to various caching backends emphasising cache taggging and indexing to Redis, Memcached, PDO/SQL, APC and other adapters.

114542.8k6](/packages/apix-cache)[matthiasmullie/scrapbook

Scrapbook is a PHP cache library, with adapters for e.g. Memcached, Redis, Couchbase, APCu, SQL and additional capabilities (e.g. transactions, stampede protection) built on top.

3212.5M32](/packages/matthiasmullie-scrapbook)[spiritix/lada-cache

A Redis based, automated and scalable database caching layer for Laravel

591444.8k2](/packages/spiritix-lada-cache)[desarrolla2/cache

Provides an cache interface for several adapters Apc, Apcu, File, Mongo, Memcache, Memcached, Mysql, Mongo, Redis is supported.

1322.5M47](/packages/desarrolla2-cache)

PHPackages © 2026

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