Recommend this page to a friend! |
Download .zip |
Info | Documentation | View files (3) | Download .zip | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
50% | Total: 599 This week: 1 | All time: 5,196 This week: 560 |
Version | License | PHP version | Categories | |||
sendnotif 0.1 | Custom (specified... | 5 | PHP 5, Web services, Chat |
Description | Author | |||||||||||||||||||||||
This class can notify users of Google Firebase Cloud Messaging (FCM). Innovation Award |
|
A php wrapper to send push notifications using Google's FCM
include('sendNotif.php');
$push = new sendNotif();
$push->set_api_key('API_KEY');
$push->set_rid($rids); //Where $rid is an array of registration ids, atleast one is required
$push->set_msg($title, $msg, $subtitle = null, $ticketText = null, $vibrate = true, $sound = 1);
//You can also use a message array, check the code or FCM documention for the array format
$push->set_msg_arr($array);
$response = $push->send();
Files |
File | Role | Description |
---|---|---|
LICENSE | Lic. | License text |
README.md | Doc. | Documentation |
sendNotif.php | Class | Class source |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
User Ratings | ||||||||||||||||||||||||||||||
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.