legomolina/fcm-push-notification
Composer 安装命令:
composer require legomolina/fcm-push-notification
包简介
Basic class to send push notifications through Google Firebase
README 文档
README
Basic class to send push notifications using google firebase.
Installation
Be careful! This library needs curl module for php to work.
FMC Push Notifications is hosted in packagist so you can get it from Composer
composer require legomolina/fcm-push-notification
Usage
Require the Composer autoload in your index:
<?php require 'vendor/autoload.php';
Set your Firebase API key
FCMPushNotifications::API_KEY = "my_api_key";
Create a notification object:
$notification = new FCMNotification("Title", "Message");
And send notifications
FCMPushNotifications::send("mobile_token_or_topic", $notification, [ "custom" => "data" ]);
License
FMC Push Notifications is licensed under the GPL v3 license. See License File for more information.
统计信息
- 总下载量: 198
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0
- 更新时间: 2016-10-26