royalmar/laravel-line-notify
最新稳定版本:1.0.1
Composer 安装命令:
composer require royalmar/laravel-line-notify
包简介
LINE Notify for laravel
README 文档
README
在Laravel實作Line Notify (Notification) 套件
How to install
composer require royalmar/laravel-line-notify
Laravel Setup
Add the service provider to config/app.php:
'providers' => [
...
Royalmar\LineNotify\Providers\LineNotifyServiceProvider::class,
...
Add alias to config/app.php:
'aliases' => [
...
'LineNotify' => Royalmar\LineNotify\Facades\LineNotify::class,
...
Use custom config
php artisan vendor:publish --tag="line_notify_install"
Usage
Send text message
LineNotify::sendMessage('{accessToken}', 'test massage');
Send text message and image
LineNotify::sendMessageAndImage('{accessToken}', 'test massage', [ 'imageThumbnail' => 'https://asnanak.net/site/wp-content/uploads/2012/10/source_27_waves_dark_green-240x240.jpg', 'imageFullsize' => 'https://asnanak.net/site/wp-content/uploads/2012/10/source_27_waves_dark_green-1024x768.jpg' ]);
send text message and sticker
LineNotify::sendMessageAndSticker('{accessToken}', 'test massage', [ 'stickerPackageId' => 1, 'stickerId' => 10 ]);
Limitations are identical to Business Connect API ref: https://developers.line.me/businessconnect/api-reference#sending_message
统计信息
- 总下载量: 1.17k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2018-12-23