2017 © Pedro Peláez
 

package laravel-onesignal

A Onesignal package for Laravel 5.2 or higher

image

donkfather/laravel-onesignal

A Onesignal package for Laravel 5.2 or higher

  • Sunday, November 5, 2017
  • by donkfather
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 3 Forks
  • 0 Open issues
  • 9 Versions
  • 0 % Grown

The README.md

Laravel 5.2 OneSignal

A Onesignal package for Laravel 5.2 or higher, (*1)

Installation

composer require donkfather/laravel-onesignal

After install this package you have to set the service provider on your config/app.php file, (*2)

Donkfather\OneSignal\ServiceProvider::class,

To use the facade add this to the facades in app/config/app.php, (*3)

'OneSignal' => \Donkfather\OneSignal\Facade\OneSignal::class

Then you just need to publish files ! Copy and paste it, (*4)

php artisan vendor:publish --provider="Donkfather\OneSignal\ServiceProvider"

Setting up your OneSignal account on your Environment file, (*5)

ONESIGNAL_APP_ID=759xxxxxxx

ONESIGNAL_API_KEY=MjYzxxxxxx

- User Auth Key -
ONESIGNAL_USER_AUTH_KEY=ZMOADxxxxxx

Example Usage

use Donkfather\OneSignal\Exceptions\FailedToSendNotificationException;
use Donkfather\OneSignal\Facade\OneSignal;


Route::get('/', function () {
    try {

        $res = OneSignal::SendNotificationToAll('Hello', 'World');

    } catch (FailedToSendNotificationException $e) {

        dd($e);
    }
    dd($res);
});
 ````
Methods supported by this package and their parameters can be found in the [API Reference](https://documentation.onesignal.com/reference) 
##Issues

If you have any questions or issues, please open an Issue ., (*6)

The Versions

05/11 2017

dev-master

9999999-dev

A Onesignal package for Laravel 5.2 or higher

  Sources   Download

MIT

The Requires

 

by Avatar donkfather

05/11 2017

1.1.0

1.1.0.0

A Onesignal package for Laravel 5.2 or higher

  Sources   Download

MIT

The Requires

 

by Avatar donkfather

02/11 2017

1.0.6

1.0.6.0

A Onesignal package for Laravel 5.2 or higher

  Sources   Download

MIT

The Requires

 

by Avatar donkfather

02/11 2017

1.0.5

1.0.5.0

A Onesignal package for Laravel 5.2 or higher

  Sources   Download

MIT

The Requires

 

by Avatar donkfather

20/02 2017

1.0.4

1.0.4.0

A Onesignal package for Laravel 5.2 or higher

  Sources   Download

MIT

The Requires

 

by Avatar moathdev

05/02 2017

1.0.3

1.0.3.0

A Onesignal package for Laravel 5.2 or higher

  Sources   Download

MIT

The Requires

 

by Avatar moathdev

02/02 2017

1.0.2

1.0.2.0

A Onesignal package for Laravel 5.2 or higher

  Sources   Download

MIT

The Requires

 

by Avatar moathdev

30/01 2017

1.0.1

1.0.1.0

A Onesignal package for Laravel 5.2 or higher

  Sources   Download

MIT

The Requires

 

by Avatar moathdev

24/01 2017

1.0.0

1.0.0.0

A Onesignal package for Laravel 5.2 or higher

  Sources   Download

MIT

The Requires

 

by Avatar moathdev