PHPackages                             choate/xsexpress - 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. choate/xsexpress

ActiveLibrary

choate/xsexpress
================

message queue

07PHP

Since Jul 24Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Choate/xsexpress)[ Packagist](https://packagist.org/packages/choate/xsexpress)[ RSS](/packages/choate-xsexpress/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

消息中间件
=====

[](#消息中间件)

安装
==

[](#安装)

基于composer安装

`php composer.phar require choate/xsexpress`

说明
==

[](#说明)

消费者
---

[](#消费者)

### 消费者配置

[](#消费者配置)

```
'xsexpress'        => [
    'class' => 'choate\xsexpress\XSExpress',
    'httpsqs' => [
        'class' => '\Httpsqs',
        ...
    ],
    'signatureKey' => 'test_express_signature',
]
```

### 消费者使用

[](#消费者使用)

```
$xsexpress = Yii::$app->xsexpress;
while (($goods = $xsexpress->receipt('topic')) !== false) {
    // 业务逻辑
    // ...
    // 完成消费确认签名
    $xsexpress->signature($goods);
}
```

生产者
---

[](#生产者)

### 生产者配置

[](#生产者配置)

```
'xsexpress'        => [
    'class' => 'choate\xsexpress\XSExpress',
    'httpsqs' => [
        'class' => '\Httpsqs',
        ...
    ],
    'db' => 'db',
]
```

### 生产者使用

[](#生产者使用)

```
try {
    Yii::$app->xsexpress->ship('topic', ['test' => 123456]);
} catch (\Exception $e) {
    // 发货失败，可以进入本地队列重新推送
}
```

平台
--

[](#平台)

### 守护进程配置

[](#守护进程配置)

```
'controllerMap' => [
    'express' => '\choate\xsexpress\controllers\ExpressController',
],
'components'          => [
    'xsexpress'        => [
        'class' => 'choate\xsexpress\XSExpress',
        'httpsqs' => [
            'class' => '\Httpsqs',
            ...
        ],
        'db' => 'db',
        'mutex' => 'fileMutex',
        'retryTime' => 300,
        'signatureKey' => 'test_express_signature',
    ],
],
```

### 平台使用

[](#平台使用)

```
./vendor/bin/yii express/recycle --appConfig=configPath
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

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://www.gravatar.com/avatar/398f6741841ad8a75b9b9b8f186b752608cb60cb7acfa2df41f56451af4b014f?d=identicon)[Choate](/maintainers/Choate)

### Embed Badge

![Health badge](/badges/choate-xsexpress/health.svg)

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

PHPackages © 2026

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