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

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

flarum-com/database-queue
=========================

Adds Database queues to Flarum

2.0.0-beta.1(1y ago)037MITPHP

Since Jan 27Pushed 1y agoCompare

[ Source](https://github.com/flarum-com/database-queue)[ Packagist](https://packagist.org/packages/flarum-com/database-queue)[ Docs](https://flarum.org)[ GitHub Sponsors](https://github.com/flarum)[ Fund](https://opencollective.com/flarum)[ RSS](/packages/flarum-com-database-queue/feed)WikiDiscussions main Synced 2mo ago

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

[![](https://camo.githubusercontent.com/17a19bf80e7c4bb24be2a2cb5b681cc6754c78584c13882d5ef3111804573b69/68747470733a2f2f666c6172756d2e6f72672f657874656e73696f6e2f666c6172756d2d636f6d2f64617461626173652d71756575652f6f70656e2d67726170682d696d616765)](https://camo.githubusercontent.com/17a19bf80e7c4bb24be2a2cb5b681cc6754c78584c13882d5ef3111804573b69/68747470733a2f2f666c6172756d2e6f72672f657874656e73696f6e2f666c6172756d2d636f6d2f64617461626173652d71756575652f6f70656e2d67726170682d696d616765)

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". 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 flarum-com/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.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

522d ago

### Community

Maintainers

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

---

Top Contributors

[![luceos](https://avatars.githubusercontent.com/u/504687?v=4)](https://github.com/luceos "luceos (16 commits)")[![imorland](https://avatars.githubusercontent.com/u/16573496?v=4)](https://github.com/imorland "imorland (13 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/flarum-com-database-queue/health.svg)

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

###  Alternatives

[flarum-lang/russian

Russian language pack for Flarum.

12128.3k](/packages/flarum-lang-russian)[flarum-lang/french

French language pack to localize the Flarum forum software plus its official and third-party extensions.

1938.7k](/packages/flarum-lang-french)[ytake/laravel-couchbase

Couchbase providers for Laravel

3052.3k](/packages/ytake-laravel-couchbase)[michalsn/codeigniter-queue

Queues for CodeIgniter 4 framework

714.1k](/packages/michalsn-codeigniter-queue)

PHPackages © 2026

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