Download the PHP package smirltech/laravel-fcm without Composer
On this page you can find all versions of the php package smirltech/laravel-fcm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download smirltech/laravel-fcm
More information about smirltech/laravel-fcm
Files in smirltech/laravel-fcm
Package laravel-fcm
Short Description Laravel Firebase Cloud Messaging.
License MIT
Homepage https://github.com/smirltech/laravel-fcm
Informations about the package laravel-fcm
Introduction
LaravelFcm 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="SmirlTech\LaravelFcm\Providers\LaravelFcmServiceProvider"
to publish the laravel-fcm.php
config file.
Get Athentication Key
Get Authentication Key from https://console.firebase.google.com/
Configure laravel-fcm.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
laravelfcm()
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:
This package is a fork of kutia-software-company/larafirebase
All versions of laravel-fcm with dependencies
illuminate/support Version ^8.0|^9.0|^10.0
illuminate/notifications Version ^8.0|^9.0|^10.0
spatie/laravel-package-tools Version ^1.14.1