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
The basic steps are:
- Set AliCloud AK/SK In Env, please see: configure-the-alibaba-cloud-accesskey-environment
- Run (In the SDK root directory):
CreateQueueAndSendMessage.php: Set theEndpointat the bottom and Runphp Samples/Queue/CreateQueueAndSendMessage.php.CreateTopicAndPushMessageToQueue.php: Set theEndpointat the bottom and RunSamples/Topic/CreateTopicAndPushMessageToQueue.php.CreateTopicAndPublishMessage.php: Set theEndpoint,ipandportat the bottom and RunSamples/Topic/CreateTopicAndPublishMessage.php.TopicSubscribe.php: Set theEndpoint,regionandaccountIdat the bottom and RunSamples/Topic/TopicSubscribe.php.
Run the Tests
The basic steps are:
- Set AliCloud AK/SK/Endpoint In
Tests/aliyun-mns.ini. - In the SDK root directory, run
vendor/bin/phpunit.
统计信息
- 总下载量: 258.19k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 36
- 点击次数: 1
- 依赖项目数: 16
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-04-19