sifouneaissa/larafire-notify

Laravel wrapper for Firebase notifications with topic and group management.

v1.0.1 2025-04-25 18:15 UTC

This package is auto-updated.

Last update: 2025-04-25 18:16:12 UTC


README

Latest Version on Packagist Total Downloads License

A Laravel package for sending Firebase Cloud Messages (FCM) with topic management capabilities.

Features

  • Send notifications to single or multiple devices
  • Subscribe/unsubscribe devices to topics
  • Easy integration with Laravel applications
  • Supports Firebase authentication
  • Configurable through Laravel config files

Configuration

FIREBASE_CREDENTIALS=storage/app/firebase-credentials.json APP_DOMAIN_NAME=yourdomain.com

Firebase Setup

  • Download your Firebase service account JSON file from the Firebase Console
  • Store it in your project (recommended location: storage/app/)
  • Update your .env:
  • FIREBASE_CREDENTIALS=storage/app/your-firebase-key.json

Installation

  1. Install the package via Composer:
composer require sifouneaissa/larafire-notify
php artisan vendor:publish --provider="Sifouneaissa\LarafireNotify\LarafireNotifyServiceProvider" --tag="larafire-notify-config"