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

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

hutong/queue
============

数据列队

018PHP

Since Jul 21Pushed 8y ago1 watchersCompare

[ Source](https://github.com/HuTong/queue)[ Packagist](https://packagist.org/packages/hutong/queue)[ RSS](/packages/hutong-queue/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

queue
=====

[](#queue)

数据列队

### 配置

[](#配置)

```
1、php数组存储
$config = array(
    'type' => 'Arr',
    'host' => '0.0.0.0',
    'port' => '9510',
    'server' => array(
        'worker_num' => 1,
    )
);
2、redis存储
$config = array(
    'type' => 'Redis',
    'host' => '0.0.0.0',
    'port' => '9510',
    'server' => array(
        'worker_num' => 1,
    ),
    'set' => array(
        'host' => '127.0.0.1',
        'port' => '6379',
        'password' => '123456',
        'listName' => 'queueList',
    ),
);
3、SplQueue存储
$config = array(
    'type' => 'Spl',
    'host' => '0.0.0.0',
    'port' => '9510',
    'server' => array(
        'worker_num' => 1,
    )
);

```

### 服务端

[](#服务端)

```
include './vendor/autoload.php';

$serv = new HuTong\Queue\Server($config);
$serv->listen();

```

### 客户端

[](#客户端)

```
$config = array(
    'ip' => '127.0.0.1',
    'port' => '9510',
    'timeout' => 2
);

```

```
include './vendor/autoload.php';

$client = new HuTong\Queue\Client($config);

for ($i = 0; $i < 100; $i++)
{
    $info = $client->push('N:'.$i);
    var_dump($info);
}

$info = $client->pop();
var_dump($info);

```

学习交流群
=====

[](#学习交流群)

630730920

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8066878?v=4)[HuTong](/maintainers/HuTong)[@HuTong](https://github.com/HuTong)

---

Top Contributors

[![HuTong](https://avatars.githubusercontent.com/u/8066878?v=4)](https://github.com/HuTong "HuTong (14 commits)")

### Embed Badge

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

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

###  Alternatives

[league/geotools

Geo-related tools PHP 7.3+ library

1.4k5.5M30](/packages/league-geotools)[illuminate/bus

The Illuminate Bus package.

6045.5M509](/packages/illuminate-bus)[uecode/qpush-bundle

Asynchronous processing for Symfony using Push Queues

1672.5M2](/packages/uecode-qpush-bundle)[mayconbordin/l5-stomp-queue

Stomp Queue Driver for Laravel 5

121.1k](/packages/mayconbordin-l5-stomp-queue)

PHPackages © 2026

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