PHPackages                             blomstra/database-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. blomstra/database-queue

ActiveFlarum-extension[Database &amp; ORM](/categories/database)

blomstra/database-queue
=======================

Adds Database queues to Flarum

1.1.0(2y ago)46.8k↑28.6%3MITPHP

Since Jul 13Pushed 1y ago3 watchersCompare

[ Source](https://github.com/blomstra/flarum-ext-database-queue)[ Packagist](https://packagist.org/packages/blomstra/database-queue)[ Docs](https://blomstra.net)[ RSS](/packages/blomstra-database-queue/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (3)Versions (8)Used By (0)

[![](https://camo.githubusercontent.com/1a858ba9ee37e507d4edea392a603e164e043abbafd5f8c251c83d564820712e/68747470733a2f2f6578746976657273652e636f6d2f657874656e73696f6e2f626c6f6d737472612f64617461626173652d71756575652f6f70656e2d67726170682d696d616765)](https://camo.githubusercontent.com/1a858ba9ee37e507d4edea392a603e164e043abbafd5f8c251c83d564820712e/68747470733a2f2f6578746976657273652e636f6d2f657874656e73696f6e2f626c6f6d737472612f64617461626173652d71756575652f6f70656e2d67726170682d696d616765)

This extension allows you to easily run a queue, using your database and by configuring one cron(job).

> **Disclaimer**: this extension is provided "as is" by Blomstra. Only community support is provided.

Background and when you need this
---------------------------------

[](#background-and-when-you-need-this)

By default, Flarum runs without a (background) queue. This means that all tasks of Flarum are processed during the request of the user.

A great example of this is email sending. When using flarum/subscriptions, fof/follow-tags, ianm/follow-users or any other extension that allows subscribing to things, email sent out to notify users. For smaller communities this is not a big deal, but at some point you'll notice your requests (posting for instance) may start to slow down. All of these emails are dispatched after the post is stored to the database.

To resolve this increasing burden, you can run a Queue. A queue runs on your server, it does not interact with the user and their requests. A user request, however, can dispatch tasks to the queue. This extension provides the easiest implementation of a queue and works on shared hosting environments as well.

Install
-------

[](#install)

```
composer require blomstra/database-queue:"*"
```

Enable the extension inside the admin area. If you already have the Flarum scheduler setup, there's nothing more to do. Otherwise, see below:

### Set up

[](#set-up)

Go into your hosting control panel and set up the following task to run every minute:

```
php flarum schedule:run
```

Or in cron language:

```
* * * * * cd /path/to/flarum && php flarum schedule:run
```

### FAQ

[](#faq)

*What is the difference with blomstra/flarum-redis?*The redis package (it's officially not an extension) is meant for larger communities. Redis offers the ability to scale the number of workers up however you need. Running a queue worker which pulls jobs from the database can also negatively impact your community performance when processing a lot of notifications and other queue tasks.

---

- Blomstra provides managed Flarum hosting.
-

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance32

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 52% 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 ~181 days

Recently: every ~191 days

Total

6

Last Release

864d ago

Major Versions

0.1-beta.2 → 1.0.02023-11-28

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/504687?v=4)[Daniël Klabbers](/maintainers/Luceos)[@luceos](https://github.com/luceos)

---

Top Contributors

[![imorland](https://avatars.githubusercontent.com/u/16573496?v=4)](https://github.com/imorland "imorland (13 commits)")[![luceos](https://avatars.githubusercontent.com/u/504687?v=4)](https://github.com/luceos "luceos (7 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (3 commits)")[![flarum-bot](https://avatars.githubusercontent.com/u/39334649?v=4)](https://github.com/flarum-bot "flarum-bot (2 commits)")

---

Tags

databasequeueflarumblomstra

### Embed Badge

![Health badge](/badges/blomstra-database-queue/health.svg)

```
[![Health](https://phpackages.com/badges/blomstra-database-queue/health.svg)](https://phpackages.com/packages/blomstra-database-queue)
```

###  Alternatives

[ytake/laravel-couchbase

Couchbase providers for Laravel

3051.9k](/packages/ytake-laravel-couchbase)

PHPackages © 2026

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