pavitra14 / send-notif
Send push notifications using Google's FCM via PHP
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
pkg:composer/pavitra14/send-notif
Requires
- php: ^5.3.3 || ^7.0
This package is not auto-updated.
Last update: 2025-10-12 09:06:09 UTC
README
A php wrapper to send push notifications using Google's FCM
Usage
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();