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 today

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 46% 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

3200d 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

48130.0M85](/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)[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

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

Client binding for IronMQ (hosted message queue)

871.8M28](/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}

120803.2k](/packages/mmucklo-queue-bundle)[mikemadisonweb/yii2-rabbitmq

Wrapper based on php-amqplib to incorporate messaging in your Yii2 application via RabbitMQ. Inspired by RabbitMqBundle for Symfony 2, really awesome package.

72258.5k1](/packages/mikemadisonweb-yii2-rabbitmq)

PHPackages © 2026

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