openpp/notificationhubs-rest-php
最新稳定版本:0.5.0
Composer 安装命令:
composer require openpp/notificationhubs-rest-php
包简介
Microsoft Azure Notification Hub library for PHP
README 文档
README
This is a implementation of a REST wrapper using the REST APIs of Notification Hubs from a PHP back-end.
How to use the code above
Initialize your Notification Hubs client (substitute the connection string and hub name as instructed in the Get started tutorial):
$hub = new NotificationHub("connection string", "hubname");
Then add the send code depending on your target mobile platform.
iOS
$factory = new NotificationFactory();
$notification = $factory->createNotification("apple", "Hello from PHP!");
$hub->sendNotification($notification);
Android
$factory = new NotificationFactory();
$notification = $factory->createNotification("gcm", "Hello from PHP!");
$hub->sendNotification($notification);
Notes
This code is provided as-is with no guarantees.
统计信息
- 总下载量: 4k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2015-03-18