Download the PHP package contextmapp/laravel-pushwoosh without Composer
On this page you can find all versions of the php package contextmapp/laravel-pushwoosh. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download contextmapp/laravel-pushwoosh
More information about contextmapp/laravel-pushwoosh
Files in contextmapp/laravel-pushwoosh
Package laravel-pushwoosh
Short Description Laravel package for integrating Pushwoosh
License MIT
Informations about the package laravel-pushwoosh
Laravel Pushwoosh
A simple wrapper around Gomoob's php-pushwoosh package for integration with the Laravel framework.
Installation
Use Composer to pull this package in as a dependency.
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
:
If you want to use the Pushwoosh
facade, you should
also add the correct alias to the aliases
array:
Configuration
You should publish the configuration file that is supplied with this package to set up your Pushwoosh details.
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.
All versions of laravel-pushwoosh with dependencies
gomoob/php-pushwoosh Version ^1.0
illuminate/notifications Version 5.3 - 5.6
illuminate/support Version 5.1 - 5.6