aliyun/aliyun-mns-php-sdk 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

aliyun/aliyun-mns-php-sdk

最新稳定版本:1.4.0

Composer 安装命令:

composer require aliyun/aliyun-mns-php-sdk

包简介

Aliyun Message and Notification Service SDK for PHP, PHP>=5.5.0

README 文档

README

Aliyun MNS Documents: https://www.aliyun.com/product/mns

Aliyun MNS Console: https://mns.console.aliyun.com

Intall Composer

To install composer by following commands, or see composer

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

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>=5.5.0, and xml extension of php is required.

Run the Samples

Queue Sample
Topic Sample

The basic steps are:

  1. Set AliCloud AK/SK In Env, please see: configure-the-alibaba-cloud-accesskey-environment
  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

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.

统计信息

  • 总下载量: 258.19k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 36
  • 点击次数: 1
  • 依赖项目数: 16
  • 推荐数: 0

GitHub 信息

  • Stars: 34
  • Watchers: 8
  • Forks: 27
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-04-19