This is a simple php file to send push notification to your mobile devices without using the all new Firebase console. It allows you to directly send notification from your web server.

Just make sure that you enter your correct server auth key from firebase console as shown below:

Firebase Project Settings

To send the push notification use the following end point:

<yourdomainname>/sendnotification.php?id=<your_firebase_id>&title=<title>&body=<body>

Example:

http://adhishlal.com/api/sendnotification.php?id=fXPrxvHI1Eg:APA91bEjQiwDus8pA4s79RAY6TiQiUKUPFPNvxifNSY2L8G1HQLtuS-bmYiUIn24T8dI2EX_rkyjBVlPUFwyODM_NGoXGUqAGOWLZG_thYv8YNIzd_fNtZzDFz7BZacAeeoyE-JujR0_&title=Hey!&body=How%20are%20you?

The firebase id is basically the client's id that is obtained on the client's side. For example - For Android clients you can use following code:

FirebaseInstanceId.getInstance().getToken()