imanborumand/mlify
Composer 安装命令:
composer require imanborumand/mlify
包简介
A romantic package for faster connection with Firebase!
README 文档
README
A lightweight package for sending notifications to Firebase
Installation:
Require the package via Composer:
composer require imanborumand/mlify
Publish config:
php artisan vendor:publish --tag=mlify-config
Set Your Firebase Authentication Key [important]
- go to config directory
- in mlify.php set auth_key to your firebase Auth key
Usage
Mlify::setParams( 'this is title', 'this is body', ['post_id' => 1, 'index_img' => 'http://yourapp.com/custom.jpg'] )->sendTo(['user token or list of tokens ']);
description:
setParams method:
set title, body and custom data
sendTo method:
This method has an input argument, which is a list of users' Firebase tokens to which you want to send a notification. This list can contain one or more tokens
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-05-27