fgh151/yii2-push
Composer 安装命令:
composer require fgh151/yii2-push
包简介
Mobile (Android, ios) push notifications extension
README 文档
README
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist fgh151/yii2-push "*"
or add
"fgh151/yii2-push": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply add it in your config by :
Basic config/web.php
Advanced [backend|frontend|common]/config/main.php
'modules' => [
'push' => [
'class' => 'fgh151\modules\push\Module',
],
...
...
],
"android", $idphone=>"android_smart_phone_id_here", $mst=>"Hello, an android user");
$rtn = $push->sendMessage($params);
//print_r($rtn);
统计信息
- 总下载量: 39
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Apache-2.0
- 更新时间: 2016-01-14