Download the PHP package feugene/firebase-notifications-laravel without Composer
On this page you can find all versions of the php package feugene/firebase-notifications-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download feugene/firebase-notifications-laravel
More information about feugene/firebase-notifications-laravel
Files in feugene/firebase-notifications-laravel
Package firebase-notifications-laravel
Short Description Firebase notifications for Laravel
License MIT
Informations about the package firebase-notifications-laravel
Here's the latest documentation on Laravel Notifications System: https://laravel.com/docs/master/notifications
FirebaseNotificationsChannel for Laravel applications
This package makes it easy to send notifications using Firebase with Laravel 5.
Contents
- Installation
- Setting up the Firebase service
- Usage
- Available Message methods
- Changelog
- Testing
- Security
- Contributing
- Credits
- License
Installation
Installed
composer
is required (how to install composer).You need to fix the major version of package.
Laravel 5.5 and above uses Package Auto-Discovery, so doesn't require you to manually register the service-provider. Otherwise you must add the service provider to the providers
array in ./config/app.php
:
If you wants to disable package service-provider auto discover, just add into your composer.json next lines:
Setting up the Firebase service
You need to set up firebase channel in config file ./config/services.php
.
To generate a private key file for your service account:
- In the Firebase console, open Settings > Service Accounts.
- Click Generate New Private Key, then confirm by clicking Generate Key.
- Securely store the JSON file containing the key. You'll need this JSON file to complete the next step.
Next select the "driver" file
or config
contains credintails for Firebase service account in ./config/services.php
:
Usage
Now you can use the channel in your via()
method inside the notification as well as send a push notification:
Subscribe devices on topic
Example Notification Message:
Available Message methods
This pakage supports all fields from HTTP v1 FCM API. Message class contains setters for all the fields:
Field | Type |
---|---|
data |
array |
title |
string |
body |
string |
android |
AndroidFcmPlatformSettings |
webpush |
WebpushFcmPlatformSettings |
apns |
AppleFcmPlatformSettings |
PlatformSettings classes contain platform secific setters
Testing
For package testing we use phpunit
framework. Just write into your terminal (installed docker-ce
is required):
Changes log
Changes log can be found here.
Support
If you will find any package errors, please, make an issue in current repository.
Security
If you discover any security related issues, please email [email protected]
instead of using the issue tracker.
Credits
- jetexe
- DmitriyRuppel
- All Contributors
License
This is open-sourced software licensed under the MIT License.
All versions of firebase-notifications-laravel with dependencies
ext-json Version *
ext-mbstring Version *
google/apiclient Version ^2.2
guzzlehttp/guzzle Version ~6.3
illuminate/notifications Version >=5.8.0 < 5.9.0
illuminate/support Version >=5.8.0 <5.9.0
efureev/support Version 2.0.*