artarts36/pushall-sender
Composer 安装命令:
composer require artarts36/pushall-sender
包简介
Push Sender
README 文档
README
Description:
Client for send push-notifications on API https://pushall.ru
PushAll API Documentation: https://pushall.ru/blog/api
Installation:
composer require artarts36/pushall-sender
Examples:
Simple:
use ArtARTs36\PushAllSender\Senders\PushAllSender; use ArtARTs36\PushAllSender\Push; $sender = new PushAllSender(123456789, 'apiKey'); $push = new Push('Message #1', 'Hello'); $sender->push($push);
Connect in Laravel:
1*. Set variables in .env:
PUSHALL_API_KEY='your key' PUSHALL_CHANNEL_ID='your channel id'
2*. Binding in bootstrap/app.php:
$app->singleton( \ArtARTs36\PushAllSender\Interfaces\PusherInterface::class, function () { return new ArtARTs36\PushAllSender\Senders\PushAllSender(env('PUSHALL_CHANNEL_ID'), env('PUSHALL_API_KEY')); } );
统计信息
- 总下载量: 325
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-06-23