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

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

votong/laravel-session-mongodb
==============================

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

0.0.2(1y ago)18MITPHPPHP &gt;=8.0

Since Jun 8Pushed 1y agoCompare

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

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

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

22

—

LowBetter than 22% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 58.8% 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 ~0 days

Total

2

Last Release

703d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/19e8cf95ad5ed33acafa07987b803c48cb58b054ed1414169498598da835d790?d=identicon)[votong](/maintainers/votong)

---

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)")[![votong](https://avatars.githubusercontent.com/u/13463461?v=4)](https://github.com/votong "votong (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/votong-laravel-session-mongodb/health.svg)

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

###  Alternatives

[jenssegers/mongodb-session

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

76308.1k3](/packages/jenssegers-mongodb-session)[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

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

PHPackages © 2026

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