hrhabib/fcm-push-notification

A library for sending firebase push notification

Installs: 272

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/hrhabib/fcm-push-notification

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

This package is not auto-updated.

Last update: 2026-01-04 03:37:48 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.