PHPackages                             jenssegers/mongodb-session - 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. jenssegers/mongodb-session

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

jenssegers/mongodb-session
==========================

A MongoDB session driver for Laravel 4, 5, 6, 7 and 8

v1.4.0(5y ago)76308.1k—7.5%27[10 issues](https://github.com/jenssegers/laravel-mongodb-session/issues)[1 PRs](https://github.com/jenssegers/laravel-mongodb-session/pulls)3MITPHPPHP &gt;=7.2

Since Dec 13Pushed 3y ago6 watchersCompare

[ Source](https://github.com/jenssegers/laravel-mongodb-session)[ Packagist](https://packagist.org/packages/jenssegers/mongodb-session)[ RSS](/packages/jenssegers-mongodb-session/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (2)Versions (8)Used By (3)

Laravel MongoDB Session
=======================

[](#laravel-mongodb-session)

A MongoDB session driver for Laravel 4, 5, 6, 7 or 8 which is inspired by LMongo. For more information about Sessions, check .

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

[](#installation)

Make sure you have [jenssegers\\mongodb](https://github.com/jenssegers/Laravel-MongoDB) installed before you continue.

### Laravel Version Compatibility

[](#laravel-version-compatibility)

LaravelPackage4.x.x1.0.x5.x.x1.2.x6.x.x1.3.x7.x.x1.4.x8.x.x1.4.xInstall using composer:

```
composer require jenssegers/mongodb-session

```

Add the session service provider in `app/config/app.php`: (Below Laravel 7 Version)

```
'Jenssegers\Mongodb\Session\SessionServiceProvider',

```

Change the session driver in `app/config/session.php` to mongodb:

```
'driver' => 'mongodb',

```

*Optional*: change the connection to a connection using the mongodb driver from `app/config/database.php`:

```
'connection' => 'mongodb',

```

###  Health Score

42

—

FairBetter than 90% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity49

Moderate usage in the ecosystem

Community25

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 62.5% 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 ~415 days

Recently: every ~562 days

Total

7

Last Release

2049d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.3.0

v1.3.0PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/91980fbd02c3e65e0b2ec1c65e4ca0131f1bbc3929a0a11a7f4f12db5f2036e3?d=identicon)[jenssegers](/maintainers/jenssegers)

---

Top Contributors

[![jenssegers](https://avatars.githubusercontent.com/u/194377?v=4)](https://github.com/jenssegers "jenssegers (20 commits)")[![Mello21century](https://avatars.githubusercontent.com/u/4740180?v=4)](https://github.com/Mello21century "Mello21century (8 commits)")[![CammoKing](https://avatars.githubusercontent.com/u/1039106?v=4)](https://github.com/CammoKing "CammoKing (2 commits)")[![arthurkirkosa](https://avatars.githubusercontent.com/u/1099791?v=4)](https://github.com/arthurkirkosa "arthurkirkosa (1 commits)")[![duxet](https://avatars.githubusercontent.com/u/821707?v=4)](https://github.com/duxet "duxet (1 commits)")

---

Tags

laravelmongodbdriversessionmongo

### Embed Badge

![Health badge](/badges/jenssegers-mongodb-session/health.svg)

```
[![Health](https://phpackages.com/badges/jenssegers-mongodb-session/health.svg)](https://phpackages.com/packages/jenssegers-mongodb-session)
```

###  Alternatives

[jenssegers/mongodb-sentry

An extension for Laravel-MongoDB that lets you work with Sentry

5445.0k1](/packages/jenssegers-mongodb-sentry)[leroy-merlin-br/mongolid

Easy, powerful and ultrafast ODM for PHP and MongoDB.

11234.3k4](/packages/leroy-merlin-br-mongolid)[julien-c/mongovel

A Laravel-ish wrapper to the PHP Mongo driver

357.7k](/packages/julien-c-mongovel)[jenssegers/mongodb-lite

A lightweight MongoDB database library and model for Laravel 4

111.0k](/packages/jenssegers-mongodb-lite)

PHPackages © 2026

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