openium/platinium-bundle
最新稳定版本:v1.4.3
Composer 安装命令:
composer require openium/platinium-bundle
包简介
Provides push notification on Platinium for your Symfony5 Project
README 文档
README
This bundle provide a easy way to send a push message by using Platinium
Caution
Versions < 1.1.6 are deprecated
Installation
Open a command console, enter your project directory and execute:
$ composer require openium/platinium-bundle
Configuration
You need to add 4 information in the .env
###> openium/platinium-bundle ###
PLATINIUM_SERVER_ID=
PLATINIUM_SERVER_KEY=
PLATINIUM_SERVER_TOKEN_DEV=
PLATINIUM_SERVER_TOKEN_PROD=
###< openium/platinium-bundle ###
Usage
Example :
// set by dependency injection $notifier = new PlatiniumNotifier(...); // get number of future pushed devices $deviceCount = $notifier->subscribe($groups, $langs, $langNotIn, $latitude, $longitude, $tolerance, $radius, $paramsBag, $badgeValue, $newsStand, $sound); // send a push message $pushSended = $notifier->notify($message, $groups, $langs, $langNotIn, $latitude, $longitude, $tolerance, $radius);
统计信息
- 总下载量: 523
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-11-19