ekkalak / line-notify
Sending messages to LINE Notify with PHP
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/ekkalak/line-notify
Requires
- php: >=5.6
- guzzlehttp/guzzle: >=6.5.1
This package is auto-updated.
Last update: 2025-11-29 03:17:42 UTC
README
Sending messages to LINE Notify with PHP.
Requirement
- Line Token https://notify-bot.line.me/en/
- PHP
- Composer
- Guzzle Client
Install
composer require ekkalak/line-notify
Usage
<?php require_once '../vendor/autoload.php'; use Ekkalak\Line\LineNotify; $notify = new LineNotify('YOUR-TOKEN-HERE'); // Send text $response = $notify->sendText($text); // i.e. $response = $notify->sendText("Hello test"); // Send sticker // Sticker List: // https://devdocs.line.me/files/sticker_list.pdf // https://developers.line.biz/media/messaging-api/sticker_list.pdf $response = $notify->sendSticker($stickerPackageId, $stickerId); // i.e. $response = $notify->sendSticker(4, 300); var_dump($response);