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

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

davelip/laravel-database-queue
==============================

0.5.7(9y ago)2292.6k12MITPHPPHP &gt;=5.3.0

Since Nov 19Pushed 7y ago3 watchersCompare

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

READMEChangelog (10)Dependencies (3)Versions (20)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`

```
"davelip/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

37

—

LowBetter than 81% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community18

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~45 days

Recently: every ~122 days

Total

19

Last Release

3424d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/946249?v=4)[David Lippi](/maintainers/davelip)[@davelip](https://github.com/davelip)

---

Top Contributors

[![davelip](https://avatars.githubusercontent.com/u/946249?v=4)](https://github.com/davelip "davelip (10 commits)")[![evosch](https://avatars.githubusercontent.com/u/9988783?v=4)](https://github.com/evosch "evosch (2 commits)")[![atefBB](https://avatars.githubusercontent.com/u/10966925?v=4)](https://github.com/atefBB "atefBB (1 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/davelip-laravel-database-queue/health.svg)

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

###  Alternatives

[illuminate/queue

The Illuminate Queue package.

21332.6M1.6k](/packages/illuminate-queue)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)[spatie/laravel-health

Monitor the health of a Laravel application

87512.0M165](/packages/spatie-laravel-health)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M194](/packages/laravel-ai)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

725173.0k14](/packages/tallstackui-tallstackui)

PHPackages © 2026

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