Skip to content

zeustd/firebase-notification-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

firebase-notification-php

Example to send push notification via Firebase using PHP

To use the FirebaseNotification class, you would first need to create an instance of the class by calling the __construct method and passing in your Firebase project's server key and the token of the device you want to send the notification to as arguments.

Once you have an instance of the class, you can send a notification by calling the send method and passing in the title and body of the notification as arguments.

The send method will return a response from the Firebase Cloud Messaging (FCM) service indicating whether or not the notification was successfully sent. You can then handle this response as needed in your code.

About

Example to send push notification via Firebase using PHP

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages