Download the PHP package kutia-software-company/larafirebase without Composer
On this page you can find all versions of the php package kutia-software-company/larafirebase. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kutia-software-company/larafirebase
More information about kutia-software-company/larafirebase
Files in kutia-software-company/larafirebase
Package larafirebase
Short Description Laravel Firebase Cloud Messaging.
License MIT
Homepage https://github.com/kutia-software-company/larafirebase
Informations about the package 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 larafirebase with dependencies
illuminate/notifications Version ^7.0|^8.0|^9.0|^10.0