PHPackages                             wangjian/mqclient - 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. wangjian/mqclient

ActiveLibrary

wangjian/mqclient
=================

MQServer的客户端API

1.0.0(8y ago)1161MITPHPPHP &gt;=5.3.0

Since Jun 17Pushed 8y ago1 watchersCompare

[ Source](https://github.com/wangsir0624/MQClient)[ Packagist](https://packagist.org/packages/wangjian/mqclient)[ RSS](/packages/wangjian-mqclient/feed)WikiDiscussions master Synced 1mo ago

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

MQClient
========

[](#mqclient)

我编写的队列服务器MQServer的客户端，可以使用这个包与MQServer进行交互。 队列服务器MQServer的安装和使用请参照[wangjian/mqserver](https://github.com/wangsir0624/MQServer/)

### 安装

[](#安装)

可以通过composer安装

```
composer require wangjian/mqclient
```

### Usage

[](#usage)

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

$client = new \Wangjian\MQClient\Client('127.0.0.1', 3000);

//创建一个名为test的队列
$client->createQueue('test');

//创建一个名为test1的队列，队列最大元素个数为1000
$client->createQueue('test1', 1000);

//检查队列是否存在
var_dump($client->existsQueue('test'));

//删除队列test1
$client->deleteQueue('test1');

//入队
$client->inQueue('test', 111);
$client->inQueue('test', [1, 2, 3]);
$client->inQueue('test', 222, true); //将222添加到队列头部

//出队
var_dump($client->unQueue('test'));

//设定队列的优先级
var_dump($client->unQueue('test1', 'test2', 'test3'));  //优先获取test1中的元素，如果test1为空，则获取test2的元素，依次类推，可以用这个特性来设定队列的优先级
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

3249d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/804f387c38e2dfd45455daecf401d7b45804826d8d4d7a440e92c0f4df90246c?d=identicon)[wangsir0624](/maintainers/wangsir0624)

---

Top Contributors

[![wangsir0624](https://avatars.githubusercontent.com/u/19991740?v=4)](https://github.com/wangsir0624 "wangsir0624 (6 commits)")

---

Tags

MQmessage queue

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/wangjian-mqclient/health.svg)

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

###  Alternatives

[queue-interop/queue-interop

Promoting the interoperability of MQs objects. Based on Java JMS

48030.5M86](/packages/queue-interop-queue-interop)[bschmitt/laravel-amqp

AMQP wrapper for Laravel and Lumen to publish and consume messages

2752.3M7](/packages/bschmitt-laravel-amqp)[aliyunmq/mq-http-sdk

Aliyun Message Queue(MQ) Http PHP SDK, PHP&gt;=5.5.0

75379.9k14](/packages/aliyunmq-mq-http-sdk)[clue/mq-react

Mini Queue, the lightweight in-memory message queue to concurrently do many (but not too many) things at once, built on top of ReactPHP

144691.7k4](/packages/clue-mq-react)[iron-io/iron_mq

Client binding for IronMQ (hosted message queue)

871.8M30](/packages/iron-io-iron-mq)[mmucklo/queue-bundle

Symfony2/3/4/5 Queue Bundle (for background jobs) supporting Mongo (Doctrine ODM), Mysql (and any Doctrine ORM), RabbitMQ, Beanstalkd, Redis, and ... {write your own}

120839.8k](/packages/mmucklo-queue-bundle)

PHPackages © 2026

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