Download the PHP package gem-partij/gemboot-larafirebase without Composer
On this page you can find all versions of the php package gem-partij/gemboot-larafirebase. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gem-partij/gemboot-larafirebase
More information about gem-partij/gemboot-larafirebase
Files in gem-partij/gemboot-larafirebase
Package gemboot-larafirebase
Short Description Laravel Firebase Cloud Messaging.
License MIT
Homepage https://github.com/kutia-software-company/larafirebase
Informations about the package gemboot-larafirebase
This package is forked from kutia-software-company/larafirebase
Introduction
Larafirebase is a package thats offers you to send push notifications or custom messages via Firebase in Laravel.
Firebase Cloud Messaging (FCM) is a cross-platform messaging solution that lets you reliably deliver messages at no cost.
For use cases such as instant messaging, a message can transfer a payload of up to 4KB to a client app.
Installation
Follow the steps below to install the package.
Composer
Copy Config
Run php artisan vendor:publish --provider="Kutia\Larafirebase\Providers\LarafirebaseServiceProvider"
to publish the larafirebase.php
config file.
Get Athentication Key
Get Authentication Key from https://console.firebase.google.com/
Configure larafirebase.php as needed
Usage
Follow the steps below to find how to use the package.
Example usage in Controller/Service or any class:
Example usage in Notification class:
Tips
- Check example how to receive messages or push notifications in a JavaScript client.
- You can use
larafirebase()
helper instead of Facade.
Payload
Check how is formed payload to send to firebase:
Example 1:
Example 2:
If you want to create payload from scratch you can use method fromRaw
, for example:
Made with ♥ by Gentrit Abazi (@gentritabazi).
All versions of gemboot-larafirebase with dependencies
illuminate/notifications Version ^8.0|^9.0|^10.0|^11.0