janmeier/gcm-sender
Composer 安装命令:
composer require janmeier/gcm-sender
包简介
light weight library to send Google Cloud Messages (GCM) using PHP & curl.
README 文档
README
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
其他信息
- 授权协议: MIT
- 更新时间: 2014-12-03