定制 infi-nl/push-notifier 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

infi-nl/push-notifier

最新稳定版本:v1.0-beta.1

Composer 安装命令:

composer require infi-nl/push-notifier

包简介

Send push notifications from PHP to multiple device types

README 文档

README

PHP library for sending push notifications to multiple device types.

Apple Push Notification example

Prepare the PushNotifier for sending Apple Push Notifications. Note that you can provide your own Pusher-strategies, to send notifications for Android and Windows Phone for example.

$pushNotifier = new PushNotifier(
  new PusherStrategyCollection(array(
      new ApnPusher(
          'ssl://gateway.sandbox.push.apple.com:2195',
          '<path-to-pem-file>'
      )
  ))
);

Sending an Apple Push Notification

$message              = new ApnMessage();
$message->body        = "<my message>";
$message->badge       = 0;
$message->deviceToken = "<device token>";

$pushNotifier->push($message);

Google Cloud Messaging example

Prepare the PushNotifier for sending Google Cloud Messages.

$pushNotifier = new PushNotifier(
  new PusherStrategyCollection(array(
      new GcmPusher(
        'https://android.googleapis.com/gcm/send',
        '<api-key>'
      )
  ))
);

Sending a Google Cloud Message

$message                  = new GcmMessage();
$message->message         = "<my message>";
$message->title           = "<my title>";
$message->registrationIds = array("<registrationId 1>", "<registrationId 2>", ... , "<registrationId n>");

$pushNotifier->push($message);

统计信息

  • 总下载量: 49
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 9
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-07-09

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固