PHPackages                             chefsplate/laravel-mongodb-queue - 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. chefsplate/laravel-mongodb-queue

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

chefsplate/laravel-mongodb-queue
================================

Thread-safe MongoDB database queue implementation for Laravel

1.0.3(9y ago)95.8k6MITPHPPHP &gt;=5.4.0

Since Mar 17Pushed 7y ago3 watchersCompare

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

READMEChangelog (5)Dependencies (5)Versions (10)Used By (0)

Laravel 5 MongoDB Queue Driver
==============================

[](#laravel-5-mongodb-queue-driver)

Thread-safe MongoDB database queue implementation for Laravel.

This driver is compatible with jensseger's [laravel-mongodb](https://github.com/jenssegers/laravel-mongodb) library, however we use the mongodb client instead so we can leverage `findAndModify` updates with write concerns and `$isolated` operations.

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

[](#requirements)

- PHP 5.4+
- mongodb-1.1.x PHP driver (or higher)
- Mongo 3.x+ (see note below\*)
- Laravel 5.3 (**for Laravel 5.1 or 5.2 support, please use the 5.1 branch**)
- You may also leverage laravel-mongodb in your project

\*Note: Although concurrency and locking have been implemented since Mongo 2.2, the locking is done at the database level, which makes it highly non-performant. Since Mongo 3.0, collection-level and even document-level locking has been added. Future updates may leverage bulk updates which have been added in Mongo 3.2, which make it the ideal minimum version to install.

For more details on driver compatibility, please see [the MongoDB ecosystem documentation](https://docs.mongodb.org/ecosystem/drivers/php/#php-mongodb-driver).

Install
-------

[](#install)

Require the latest version of this package with Composer:

```
composer require chefsplate/laravel-mongodb-queue:"^1.0.0"

```

Add the Service Provider to the providers array in config/app.php:

```
ChefsPlate\Queue\MongoDBServiceProvider::class,

```

You should now be able to use the **mongodb** driver in config/queue.php. (Use the same config as for the database, but use mongodb as the driver.)

```
'default' => 'mongodb',

'connections' => array(
    ...
    'mongodb' => array(
        'driver' => 'mongodb',
        'table' => 'jobs',
        'queue' => 'default',
        'expire' => 60,
    ),
    ...
}

```

Note: Mongo will automatically create the jobs collection. No database migration is needed.

Please ensure your config/database.php configuration for mongodb includes a DSN. This is required by our driver:

```
'mongodb' => array(
    'driver'   => 'mongodb',
    'dsn'      => 'mongodb://127.0.0.1:27017',
    'database' => 'database_name'
),

```

The format for the DSN is: `mongodb://[username:password@]host1[:port1][,host2[:port2:],...]/db`

For more info see:

- [Using the PHP Library (PHPLIB)](http://php.net/manual/en/mongodb.tutorial.library.php)
- [Laravel Queues](http://laravel.com/docs/queues)

###  Health Score

35

—

LowBetter than 79% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 82.1% 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 ~106 days

Recently: every ~128 days

Total

9

Last Release

2856d ago

Major Versions

0.1.1 → 1.0.02017-02-10

1.0.3 → 5.3.x-dev2017-03-08

PHP version history (2 changes)0.1PHP &gt;=5.4.0

0.1.1PHP &gt;=5.6.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/526f280d0f55551fca724c42675e9f336eebd47f83118863e7092abfc692ca02?d=identicon)[davidchchang](/maintainers/davidchchang)

---

Top Contributors

[![davidchchang](https://avatars.githubusercontent.com/u/451089?v=4)](https://github.com/davidchchang "davidchchang (23 commits)")[![vanushwashere](https://avatars.githubusercontent.com/u/24995381?v=4)](https://github.com/vanushwashere "vanushwashere (3 commits)")[![madrobot](https://avatars.githubusercontent.com/u/9037816?v=4)](https://github.com/madrobot "madrobot (2 commits)")

---

Tags

laraveldatabasequeuemongodbmongo

### Embed Badge

![Health badge](/badges/chefsplate-laravel-mongodb-queue/health.svg)

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

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

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

PHPackages © 2026

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