sifouneaissa / larafire-notify
Laravel wrapper for Firebase notifications with topic and group management.
v1.0.1
2025-04-25 18:15 UTC
Requires
- php: ^8.0
- illuminate/support: ^8.0|^9.0|^10.0
- kreait/firebase-php: ^7.0
README
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
- Install the package via Composer:
composer require sifouneaissa/larafire-notify php artisan vendor:publish --provider="Sifouneaissa\LarafireNotify\LarafireNotifyServiceProvider" --tag="larafire-notify-config"