JonasDoebertin / laravel-fcm-channel

Laravel Notification Channel for Google FCM (Firebase Cloud Massaging)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Laravel FCM (Firebase Cloud Messaging) Notification Channel

Latest Version on Packagist Software License Build Status StyleCI SensioLabsInsight Quality Score Code Coverage Total Downloads

This package makes it easy to send notifications using Firebase Cloud Messaging (FCM) with Laravel 5.3 or above.

This package is based on ZendService\Google\Gcm, so please read that documentation for more information.

Contents

Installation

Install this package with Composer:

composer require jdpowered/laravel-fcm-channel

If you're running Laravel 5.3 you must install this service provider.

// config/app.php

'providers' => [
    ...
    JdPowered\FcmNotificationChannel\FcmServiceProvider::class,
];

Setting up the FCM service

You need to register for a server key for Firebase Cloud Messaging for your App in the Firebase Console

Add the server key to your broadcasting configuration.

// config/broadcasting.php

'connections' => [
  ...
  'fcm' => [
      'key' => env('FCM_KEY'),
  ],
  ...
]
// .env

FCM_KEY=c169cc12-cb26-4cb9-983f-f41cebadf402

Usage

TODO

Available Message methods

TODO

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

composer test

Security

If you discover any security related issues, please email hello@jd-powered.net instead of using the issue tracker.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

About

Laravel Notification Channel for Google FCM (Firebase Cloud Massaging)

License:MIT License


Languages

Language:PHP 100.0%