Download the PHP package avto-dev/firebase-notifications-laravel without Composer
On this page you can find all versions of the php package avto-dev/firebase-notifications-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download avto-dev/firebase-notifications-laravel
More information about avto-dev/firebase-notifications-laravel
Files in avto-dev/firebase-notifications-laravel
Package firebase-notifications-laravel
Short Description Notifications channel for Firebase service
License MIT
Informations about the package firebase-notifications-laravel
Here's the latest documentation on Laravel Notifications System: https://laravel.com/docs/master/notifications
Firebase notifications channel 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
:
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:
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
- 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 ~7.5
illuminate/notifications Version ~10.0 || ~11.0
illuminate/config Version ~10.0 || ~11.0
illuminate/contracts Version ~10.0 || ~11.0
illuminate/support Version ~10.0 || ~11.0