Line Notify with PHP
[Line Notify Document] (https://notify-bot.line.me/doc/en/)
- PHP 5.5+
- [guzzlehttp] (https://github.com/guzzle/guzzle)
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/] (https://notify-bot.line.me/my/)
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);
The MIT License (MIT)