|Classes of Ujah Chigozie peter||>||PHP Firebase Cloud Messaging||>||README.md||>||Download|
This is a simple and powerful php class to end firebase push notification from php curl. It will allow you to push cloud messaging through firebase in 3 different way.
To initialize notification class and push builder class, include both files in your autoload file or at the top of the page you want to use this class
Sending a message to a single device id can be done like this.
Sending a message to a multiple user IDs can be done like this
Sending a message by topic IDs/name can be done like this
Setup for push builder
* @ $objectnode The send node [data or notification] * @ $to This could be either string or an array of device ids * @ $title The title of the message you are sending * @ $message Message content * @ $body Attentional body content * @ $image Set an Image * @ $data Payload * @ $is_topic For sending message to topic TRUR OR FALS * @ $vibrate Allow vibration 1 | 0 * @ $sound Notification sound * @ $icon App icon * @ $priority set notification priority * @ $is_background play in background without showing message