2017 © Pedro Peláez
 

library pusher

Firebase wrapper library for Laravel

image

vanlonden/pusher

Firebase wrapper library for Laravel

  • Tuesday, August 16, 2016
  • by vanlonden
  • Repository
  • 2 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Pusher

Setup

  1. run composer require vanlonden/pusher
  2. add VanLonden\Pusher\PusherServiceProvider::class, to the providers in config/app.php
  3. run artisan vendor:publish
  4. edit config/pusher.php to your liking
  5. add your FIREBASE_SERVER_KEY to your .env file
  6. run artisan migrate

Usage

// Send a push message to all users
$this->pusher->send('Title', 'A message', User::all());

// Create a future push message
$futurePush = FuturePush::create([
    'time' => '2016-08-03 17:00',
    'title' => 'Title',
    'message' => 'A message',
]);
$futurePush->users()->saveMany(User::all());

// Send a future push message
$this->pusher->sendFuture(FuturePush::first());

The Versions

16/08 2016

dev-master

9999999-dev

Firebase wrapper library for Laravel

  Sources   Download

The Requires

 

by Jordy van Londen