hrhabib/fcm-push-notification

A library for sending firebase push notification

Maintainers

Package info

github.com/iamhabib/fcmpushnotification-laravel-package

pkg:composer/hrhabib/fcm-push-notification

Statistics

Installs: 272

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

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

This package is not auto-updated.

Last update: 2026-03-15 05:04:33 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.