sifouneaissa / larafire-notify
Laravel wrapper for Firebase notifications with topic and group management.
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/sifouneaissa/larafire-notify
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"