Recommend this page to a friend! |
![]() |
Info | Documentation | ![]() |
![]() |
![]() |
Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
![]() ![]() ![]() | Total: 599 | All time: 5,200 This week: 524![]() |
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();
![]() |
File | Role | Description |
---|---|---|
![]() ![]() |
Lic. | License text |
![]() ![]() |
Doc. | Documentation |
![]() |
Class | Class source |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
![]() |
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.