kittinan/php-line-notify
最新稳定版本:0.5
Composer 安装命令:
composer require kittinan/php-line-notify
包简介
PHP Line Notify
关键字:
README 文档
README
https://notify-bot.line.me/closing-announce
php-line-notify
Simple PHP Line Notify Class
Requirement
- PHP 5.5+
- guzzlehttp
Composer
Install the latest version with composer
composer require kittinan/php-line-notify
https://packagist.org/packages/kittinan/php-line-notify
Generate Line Notify Token
https://notify-bot.line.me/my/
Usage
Example : notify text message
$token = 'YOUR LINE NOTIFY TOKEN'; $ln = new KS\Line\LineNotify($token); $text = 'Hello Line Notify'; $ln->send($text);
Example : notify text with image
$text = 'Hello Line Notify'; $image_path = '/YOUR/IMAGE/PATH'; //Line notify allow only jpeg and png file $ln->send($text, $image_path); //HTTP or HTTPS image path $image_path = 'https://lorempixel.com/800/600/'; //Line notify allow only jpeg and png file $ln->send($text, $image_path);
Example : notify text with sticker
See sticker list https://devdocs.line.me/files/sticker_list.pdf
$text = 'Hello Sticker'; $sticker = ['stickerPackageId' => '1', 'stickerId' => '401']; $ln->send($text, null, $sticker);
Screenshot
License
The MIT License (MIT)
统计信息
- 总下载量: 39.43k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 46
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-01-15
