hrhabib/fcm-push-notification

A library for sending firebase push notification

dev-master 2020-06-26 18:27 UTC

This package is not auto-updated.

Last update: 2024-09-28 19:36:41 UTC


README

Utility class to send push notifications using firebase FCM.

Installation

Be careful! This library needs curl module for php to work.

composer require hrhabib/fcm-push-notification
php artisan vendor:publish --tag=fcm-push-notification-config

Update firebase push key in config/fcm_push_notification.php

Usage

Bind the PushNotification class in function

public function doSomething(PushNotification $pushNotification){ // call function to send push }

Available Function:

  • sendToOne
  • sendToTopic
  • sendToAll
  • sendMultiple

License

FCM Push Notifications is licensed under the MIT license. See License File for more information.