2017 © Pedro Peláez
 

api pooshlaravel

Poosh push messaging facade for Laravel 5

image

joearcher/pooshlaravel

Poosh push messaging facade for Laravel 5

  • Tuesday, June 23, 2015
  • by joe_archer
  • Repository
  • 1 Watchers
  • 2 Stars
  • 573 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Poosh-Laravel

Super simple facade to send push messages via a Poosh server., (*1)

Setup

Require this package in composer.json and run composer update, (*2)

"joearcher/pooshlaravel": "dev-master"

After updating add the ServiceProvider the the providers array in config/app.php, (*3)

'Joearcher\Pooshlaravel\PooshlaravelServiceProvider',

And then you can add the facade to the Facades array, (*4)

'Poosh' =>  'Joearcher\Pooshlaravel\Facades\Poosh',

Publish the config, (*5)

artisan vendor:publish

This creates a poosh.php file in config/, we recommend setting these options via your .env file, (*6)

POOSH_SECRET - This is the shared secret it needs to be the same as the one set on your Poosh server., (*7)

POOSH_URL - The full url including the protocol to your Poosh server, e.g. http://poosh.blaa., (*8)

POOSH_PORT - The server port set on your Poosh server (Default is 1337)., (*9)

Usage

This facade currently provides one method which requires 2 parameters., (*10)

Poosh::send($event,$payload) $event must be a string, this is the name of the event to fire on the client. $payload must be an array() and is the payload to be sent to all clients listening for the event., (*11)

    Poosh::send('message',['body' => 'This is a message']);

Thanks

Made possible by the awesome Guzzle Http client, (*12)

The Versions

23/06 2015

dev-master

9999999-dev

Poosh push messaging facade for Laravel 5

  Sources   Download

MIT

The Requires

 

by Joe Archer

poosh push messaging