PHPackages                             ffogarasi/laravel-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. [Queues &amp; Workers](/categories/queues)
4. /
5. ffogarasi/laravel-database-queue

ActiveLibrary[Queues &amp; Workers](/categories/queues)

ffogarasi/laravel-database-queue
================================

0.5.8(8y ago)0564MITPHPPHP &gt;=5.3.0

Since Nov 19Pushed 8y ago1 watchersCompare

[ Source](https://github.com/ffogarasi/laravel-database-queue)[ Packagist](https://packagist.org/packages/ffogarasi/laravel-database-queue)[ RSS](/packages/ffogarasi-laravel-database-queue/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (3)Versions (21)Used By (0)

Laravel 4 Database Queue Driver
===============================

[](#laravel-4-database-queue-driver)

Push a function/closure to the Database queue.
----------------------------------------------

[](#push-a-functionclosure-to-the-database-queue)

This is a real queue driver, like beanstalkd or redis one. You need a daemon like supervisor or similar to listen to your queue.

### Install

[](#install)

Add the package to the require section of your composer.json and run `composer update`

```
"ffogarasi/laravel-database-queue": ">0.5"

```

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

```
'Davelip\Queue\DatabaseServiceProvider'

```

I suggest to publish migrations, so they are copied to your regular migrations

```
$ php artisan migrate:publish davelip/laravel-database-queue

```

And then run migrate

```
$ php artisan migrate

```

I suggest to create the `failed_jobs` table, in this moment, with:

```
$ php artisan queue:failed-table

```

You should now be able to use the database driver in config/queue.php

```
'default' => 'database',

'connections' => array(
    ...
    'database' => array(
        'driver' => 'database',
        'queue' => 'queue-name', // optional, can be null or any string
        'lock_type' => 0, // optional, can be 0, 1 or 2
    ),
    ...
}

```

It work in the same as beanstalkd or redis queue listener.

Listen for new job:

```
$ php artisan queue:listen

```

Concurrency are managed by `status` column in the `queues` table, so you can parallelize your `queue:listen`.

Atomicity of status change are garantee by database transaction, if you are having problems of race condition can You set the option `lock_type` to:

- 'lock\_type' =&gt; 1 // queue system will use sharedLock
- 'lock\_type' =&gt; 2 // queue system will use lockForUpdate

see  for further info.

### Laravel Queue System

[](#laravel-queue-system)

For more info see

#### Thanks

[](#thanks)

Loosely based on

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 69.2% 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 ~54 days

Recently: every ~174 days

Total

20

Last Release

3210d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6939fdc1ae13ef69475f6c1b514a590ee27c32ef3a5ed1a061d7883afa63b8c7?d=identicon)[ffogarasi](/maintainers/ffogarasi)

---

Top Contributors

[![davelip](https://avatars.githubusercontent.com/u/946249?v=4)](https://github.com/davelip "davelip (9 commits)")[![evosch](https://avatars.githubusercontent.com/u/9988783?v=4)](https://github.com/evosch "evosch (2 commits)")[![furey](https://avatars.githubusercontent.com/u/1914481?v=4)](https://github.com/furey "furey (1 commits)")[![sakoken](https://avatars.githubusercontent.com/u/8756915?v=4)](https://github.com/sakoken "sakoken (1 commits)")

### Embed Badge

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

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

###  Alternatives

[illuminate/queue

The Illuminate Queue package.

20432.2M1.5k](/packages/illuminate-queue)[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M154](/packages/spatie-laravel-health)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k38.6M289](/packages/laravel-dusk)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[laravel/ai

The official AI SDK for Laravel.

1.0k2.1M163](/packages/laravel-ai)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77018.2M122](/packages/laravel-mcp)

PHPackages © 2026

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