定制 janmeier/gcm-sender 二次开发

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

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

janmeier/gcm-sender

Composer 安装命令:

composer require janmeier/gcm-sender

包简介

light weight library to send Google Cloud Messages (GCM) using PHP & curl.

README 文档

README

Build Status

Send GCM Messages via PHP and handle the Result-Codes. Super lightweight!

Module Requirements:

  • php5-curl

Usage Example

Just add it to your composer-file!

Example composer.json file here:

{
    "repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/Jan1337z/GCM-via-PHP"
    }
    ],
    "require": {
        "GCMSender": "dev-master"
    }
}

possible index.php

<?php
    require 'vendor/autoload.php';
    $sender = new GCM\Sender("YOUR_API_KEY");
    $sender->setRecipients(array("a_android_client_registration_id"));
    $sender->sendMessage(array("message" => "some_content"));
?>

more following!

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-12-03