PHPackages                             laravuel/php-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. laravuel/php-queue

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

laravuel/php-queue
==================

PHP implements a simple message queue based on redis

1.0.0(6y ago)09PHP

Since Dec 15Pushed 6y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (2)Used By (0)

laravuel/php-queue
==================

[](#laravuelphp-queue)

php基于redis实现一个简单的消息队列

安装
--

[](#安装)

1. 安装[phpredis](https://github.com/phpredis/phpredis)扩展
2. 通过composer安装`laravuel/php-queue`

```
composer require laravuel/php-queue

```

使用
--

[](#使用)

1. 客户端

```
namespace App;

require __DIR__ . '/../vendor/autoload.php';

use App\Log;
use Carbon\Carbon;
use Laravuel\PhpQueue\Queue;

// 加载配置
$config = [
    'host' => '127.0.0.1',  // redis 地址
    'port' => '6379',   // redis 端口
    'password' => '',   // redis 密码
    'timezone' => 'Asia/Shanghai',  // 时区
    'key' => 'laravuel-php-queue',  // redis key
];
// 实例化队列对象
$queue = new Queue($config);

// 插入队列 立即执行
// Log类参考 example文件夹下的Log.php
$queue->push(new Log('test'));

// 延时执行 10秒后
// 10秒后会自动执行 Log::handle方法
$queue->push(new Log('test2'), Carbon::now()->addSeconds(10));
```

2. 服务器

首先在项目目录下创建一个run.php文件，以下参考：

```
require __DIR__ . '/../vendor/autoload.php';

use Laravuel\PhpQueue\Queue;

$queue = new Queue([
    'host' => '127.0.0.1',  // redis 地址
    'port' => '6379',   // redis 端口
    'password' => '',   // redis 密码
    'timezone' => 'Asia/Shanghai',  // 时区
    'key' => 'laravuel-php-queue',  // redis key
]);

// 开启监听
$queue->listen();
```

在命令行执行（推荐使用Supervisor，避免进程由于某些原因挂掉）：

```
php /xxx/xxx/run.php

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Unknown

Total

1

Last Release

2347d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/990beef01bb140b9913c2af6436bb31c334212d1c72d248976bd4ad1b56f3f84?d=identicon)[laravuel](/maintainers/laravuel)

---

Top Contributors

[![zhuman90](https://avatars.githubusercontent.com/u/12763586?v=4)](https://github.com/zhuman90 "zhuman90 (2 commits)")

---

Tags

queuephp-redis-queuephp queue

### Embed Badge

![Health badge](/badges/laravuel-php-queue/health.svg)

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

###  Alternatives

[imtigger/laravel-job-status

Laravel Job Status

5272.1M3](/packages/imtigger-laravel-job-status)[a5hleyrich/wp-queue

WordPress job queues

18021.5k1](/packages/a5hleyrich-wp-queue)[deliciousbrains/wp-queue

WordPress job queues

1807.4k1](/packages/deliciousbrains-wp-queue)[carsguide/lumen-horizon

Commands and code-driven configuration for Lumen queues.

1050.6k](/packages/carsguide-lumen-horizon)[tochka-developers/queue-promises

Promises for Laravel queue jobs

1912.3k](/packages/tochka-developers-queue-promises)

PHPackages © 2026

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