Skip to content

A simple wrapper around Gomoob's php-pushwoosh package for integration with the Laravel framework.

License

Notifications You must be signed in to change notification settings

contextmapp/laravel-pushwoosh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laravel Pushwoosh

A simple wrapper around Gomoob's php-pushwoosh package for integration with the Laravel framework.

Build Status Coverage Status Version License

Installation

Use Composer to pull this package in as a dependency.

composer require contextmapp/laravel-pushwoosh

If you are using Laravel 5.4 or lower, or if you have disabled package discovery, add the provider to the providers array in config/app.php:

Contextmapp\Pushwoosh\PushwooshServiceProvider::class

If you want to use the Pushwoosh facade, you should also add the correct alias to the aliases array:

'Pushwoosh' => Contextmapp\Pushwoosh\Facades\Pushwoosh::class

Configuration

You should publish the configuration file that is supplied with this package to set up your Pushwoosh details.

php artisan vendor:publish --provider=Contextmapp\Pushwoosh\PushwooshServiceProvider

This command copies the configuration file to config/pushwoosh.php.

Make sure you set up the api_token and application_id of the default application.

Usage

You can use the wrapper to interact with the Pushwoosh SDK directly, or, you could add support for Pushwoosh to your Laravel notifications.

Laravel Notifications

If you are using Laravel's notification system, you can add 'pushwoosh' to the via() response of a notification. The channel name is also available as a class constant on the Contextmapp\Pushwoosh\PushwooshChannel class. The notification class is expected to implement the Contextmapp\Pushwoosh\Contracts\PushwooshNotification contract. Your notifiable classes should implement the Contextmapp\Pushwoosh\Contracts\PushwooshNotifiable contract.

About

A simple wrapper around Gomoob's php-pushwoosh package for integration with the Laravel framework.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages