PHPackages                             qfz9527/aliyun-mns-php-sdk - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. qfz9527/aliyun-mns-php-sdk

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

qfz9527/aliyun-mns-php-sdk
==========================

Aliyun Message and Notification Service SDK for PHP, PHP&gt;=5.5.0

1.4.0(8mo ago)017MITPHPPHP &gt;=5.5.0

Since Oct 16Pushed 3mo agoCompare

[ Source](https://github.com/qfz9527/aliyun-mns-php-sdk)[ Packagist](https://packagist.org/packages/qfz9527/aliyun-mns-php-sdk)[ Docs](https://github.com/aliyun/aliyun-mns-php-sdk)[ RSS](/packages/qfz9527-aliyun-mns-php-sdk/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (3)Used By (0)

MNS SDK for PHP
===============

[](#mns-sdk-for-php)

Aliyun MNS Documents:

Aliyun MNS Console:

Intall Composer
---------------

[](#intall-composer)

To install composer by following commands, or see [composer](https://docs.phpcomposer.com/00-intro.html)

```
curl -sS https://getcomposer.org/installer | php
mv composer.phar /usr/local/bin/composer
```

Install &amp; Use
-----------------

[](#install--use)

Add require to your `composer.json`

```
{
  "require": {
     "aliyun/aliyun-mns-php-sdk": ">=1.0.0"
  }
}
```

Use Composer to install requires

```
composer install
```

*Note: php version&gt;=5.5.0, and xml extension of php is required.*

Run the Samples
---------------

[](#run-the-samples)

[Queue Sample](https://github.com/aliyun/aliyun-mns-php-sdk/blob/master/Samples/Queue/CreateQueueAndSendMessage.php)
[Topic Sample](https://github.com/aliyun/aliyun-mns-php-sdk/blob/master/Samples/Topic/CreateTopicAndPublishMessage.php)

The basic steps are:

1. Set AliCloud AK/SK In Env, please see: [configure-the-alibaba-cloud-accesskey-environment](https://help.aliyun.com/zh/sdk/developer-reference/configure-the-alibaba-cloud-accesskey-environment-variable-on-linux-macos-and-windows-systems)
2. Run (In the SDK root directory):
    - `CreateQueueAndSendMessage.php` : Set the `Endpoint` at the bottom and Run `php Samples/Queue/CreateQueueAndSendMessage.php`.
    - `CreateTopicAndPushMessageToQueue.php` : Set the `Endpoint` at the bottom and Run `Samples/Topic/CreateTopicAndPushMessageToQueue.php`.
    - `CreateTopicAndPublishMessage.php` : Set the `Endpoint`, `ip` and `port` at the bottom and Run `Samples/Topic/CreateTopicAndPublishMessage.php`.
    - `TopicSubscribe.php` : Set the `Endpoint`, `region` and `accountId` at the bottom and Run `Samples/Topic/TopicSubscribe.php`.

Run the Tests
-------------

[](#run-the-tests)

The basic steps are:

1. Set AliCloud AK/SK/Endpoint In `Tests/aliyun-mns.ini`.
2. In the SDK root directory, run `vendor/bin/phpunit`.

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance71

Regular maintenance activity

Popularity6

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor2

2 contributors hold 50%+ of commits

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

258d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24431828?v=4)[liu guan](/maintainers/qfz9527)[@qfz9527](https://github.com/qfz9527)

---

Top Contributors

[![zd-double](https://avatars.githubusercontent.com/u/16774152?v=4)](https://github.com/zd-double "zd-double (7 commits)")[![souriki](https://avatars.githubusercontent.com/u/808791?v=4)](https://github.com/souriki "souriki (2 commits)")[![liuquanhao](https://avatars.githubusercontent.com/u/7736182?v=4)](https://github.com/liuquanhao "liuquanhao (2 commits)")[![xdkxlk](https://avatars.githubusercontent.com/u/10397306?v=4)](https://github.com/xdkxlk "xdkxlk (1 commits)")[![qfz9527](https://avatars.githubusercontent.com/u/24431828?v=4)](https://github.com/qfz9527 "qfz9527 (1 commits)")[![Pius-Z](https://avatars.githubusercontent.com/u/50170470?v=4)](https://github.com/Pius-Z "Pius-Z (1 commits)")[![Houlong66](https://avatars.githubusercontent.com/u/32865414?v=4)](https://github.com/Houlong66 "Houlong66 (1 commits)")

---

Tags

messagenotificationaliyunmnsmessage service

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/qfz9527-aliyun-mns-php-sdk/health.svg)

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k532.1M2.5k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k34](/packages/neuron-core-neuron-ai)[tempest/framework

The PHP framework that gets out of your way.

2.2k31.1k12](/packages/tempest-framework)[aliyun/aliyun-mns-php-sdk

Aliyun Message and Notification Service SDK for PHP, PHP&gt;=5.5.0

34272.1k12](/packages/aliyun-aliyun-mns-php-sdk)[spatie/laravel-export

Create a static site bundle from a Laravel app

672139.5k6](/packages/spatie-laravel-export)[guanguans/notify

Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NotifyX、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

686111.2k8](/packages/guanguans-notify)

PHPackages © 2026

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