定制 webpower/gcm-application-server 二次开发

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

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

webpower/gcm-application-server

最新稳定版本:1.0.4

Composer 安装命令:

composer require webpower/gcm-application-server

包简介

Google Cloud Messaging Application Server port from JAVA to PHP

README 文档

README

Build Status Scrutinizer Quality Score

This is a port to PHP of the official com.google.android.gcm.server JAVA package.

Usage

$sender = new \WebPower\gcm\server\Sender('your google cloud messaging api key');
$message = \WebPower\gcm\server\Message::builder()
    ->addData('message', 'Hoi')
    ->build();
// Send to a single device using text/plain
$result = $sender->singleSendNoRetry($message, 'registration id');
// or to multiple devices using application/json
$result = $sender->sendNoRetry($message, array('registration id', 'another registration id'));
echo $result; // all value objects support __toString just like the Java code

The Api key can be generated at the apis console

Registration ids are obtained by the Android App when it registers itself on the GCM service. It should be forwarded to your PHP code.

Installation

composer.phar require webpower/gcm-application-server

统计信息

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

GitHub 信息

  • Stars: 5
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: Apache
  • 更新时间: 2013-02-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固