contextmapp/laravel-pushwoosh
Composer 安装命令:
composer require contextmapp/laravel-pushwoosh
包简介
Laravel package for integrating Pushwoosh
关键字:
README 文档
README
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.
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.
统计信息
- 总下载量: 188
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-09-21