PHPackages                             latrell/aliyun-mns-laravel - 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. latrell/aliyun-mns-laravel

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

latrell/aliyun-mns-laravel
==========================

阿里云消息服务在Laravel5中的Queue拓展。

1.0(10y ago)11159[1 issues](https://github.com/Latrell/AliyunMns/issues)MITPHPPHP &gt;=5.5.9

Since Apr 27Pushed 9y ago3 watchersCompare

[ Source](https://github.com/Latrell/AliyunMns)[ Packagist](https://packagist.org/packages/latrell/aliyun-mns-laravel)[ Docs](https://github.com/Latrell/AliyunMns)[ RSS](/packages/latrell-aliyun-mns-laravel/feed)WikiDiscussions master Synced 4w ago

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

AliyunMns
=========

[](#aliyunmns)

使用阿里云消息服务（MNS ）作为Laravel5队列驱动。

安装
--

[](#安装)

打开 `composer.json` 找到或创建 `repositories` 键，添加资源库。

```
	// ...
	"repositories": [
		// ...
	    {
			"type": "package",
			"package": {
				"name": "aliyun/mns",
				"version": "1.2.2",
				"dist": {
					"url": "https://docs-aliyun.cn-hangzhou.oss.aliyun-inc.com/cn/mns/0.0.53/assets/sdks/aliyun-mns-php-sdk-1.2.2.zip",
					"type": "zip"
				}
			}
		}
	],
	// ...

```

添加依赖包。

```
composer require latrell/aliyun-mns-laravel dev-master

```

使用
--

[](#使用)

找到 `config/app.php` 配置文件中，key为 `providers` 的数组，在数组中添加服务提供者。

```
	'providers' => [
		// ...
		Latrell\AliyunMns\MnsServiceProvider::class,
	]
```

打开队列配置文件 `config/queue.php`，修改驱动为 `mns` 。

服务地地址参考：[https://help.aliyun.com/document\_detail/mns/api\_reference/invoke/request.html?spm=5176.docmns/introduction/concepts.6.150.uNuU4m](https://help.aliyun.com/document_detail/mns/api_reference/invoke/request.html?spm=5176.docmns/introduction/concepts.6.150.uNuU4m)

```
	'connections' => [
		// ...
		'mns' => [
            'driver' => 'mns',
            'access_id' => 'your-access-key-id',
            'access_key' => 'your-access-key-secret',
            'security_token' => 'your-security-token',
            'end_point' => 'http(s)://{AccountId}.mns.cn-hangzhou.aliyuncs.com',
            'queue' => 'your-queue-name'
        ],
	],
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community12

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

3717d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b9c19d0caf9fc48461484ad75722397c85c31e901e77122aab1a966e5c4987dd?d=identicon)[Latrell](/maintainers/Latrell)

---

Top Contributors

[![latrell](https://avatars.githubusercontent.com/u/6267962?v=4)](https://github.com/latrell "latrell (17 commits)")

---

Tags

laravellaravel 5aliyunl5mns

### Embed Badge

![Health badge](/badges/latrell-aliyun-mns-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/latrell-aliyun-mns-laravel/health.svg)](https://phpackages.com/packages/latrell-aliyun-mns-laravel)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M337](/packages/psalm-plugin-laravel)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

43140.3k](/packages/harris21-laravel-fuse)

PHPackages © 2026

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