yogesh/push-notification
Composer 安装命令:
composer require yogesh/push-notification
包简介
This package for fpm push notification
README 文档
README
If any of the following are applicable to your project, then the directory structure should follow industry best practices by being named the following.
your_Laravel_project/
vendor/
Install
Via Composer
$ composer require yogesh/push-notification
Usage
use Yogesh\Notification\PushNotification;
Server Key
$serverKey = 'server_key'; // define fpm server key
Notification Object
$notification = new PushNotification($serverKey); // make notification object
Call Methods of Class
$notification->sendPushNotification($device_token ,$title,$body); // pass device token of particular user
$notification->sendPushBulKNotication($device_tokens ,$title ,$body); // pass device tokens of multiple users in array
Security
If you discover any security related issues, please email yrana8786@gmail.com instead of using the issue tracker.
Credits
- [kumarashok30592@gmail.com]
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-09-08