PHPackages                             postoor/line-notify-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. postoor/line-notify-sdk

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

postoor/line-notify-sdk
=======================

Line Notify SDK for PHP

1.0.0(5y ago)0253MITPHPPHP &gt;=7.0

Since Dec 15Pushed 5y ago1 watchersCompare

[ Source](https://github.com/postoor/line-notify-sdk)[ Packagist](https://packagist.org/packages/postoor/line-notify-sdk)[ RSS](/packages/postoor-line-notify-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

Line Notify SDK
===============

[](#line-notify-sdk)

Install
-------

[](#install)

```
composer required "postoor/line-notify-sdk":"dev-main"
```

Usage
-----

[](#usage)

### OAuth

[](#oauth)

```
use postoor\LineNotify\Auth;

$clientId = 'KUU8987HJKKJHKJKJ';
$clientSecret = 'MYTOUYTGFREWFGHGHHJU9876786';

$auth = new Auth([
    "clientId" => $clientId,
    "clientSecret" => $clientSecret,
]);

$callbackUri = 'https://example.com/callback';
$crsfToken = 'IOUHGYTRTUIUHUHU';

return redirect($auth->getAuthorizeUrl($callbackUri, $crsfToken), 302);
```

### Callback &amp; get Token

[](#callback--get-token)

```
$code = $_GET['code'] ?? null;
$callbackUri = $_GET['callbackUri'] ?? null;

$token = $auth->getToken($code, $callbackUri);
```

### Revoke

[](#revoke)

```
$auth->doRevoke($token);
```

### Notify

[](#notify)

```
use postoor\LineNotify\Message;

$token = 'IOUUGYRTTYUGYV9867658658';

$message = new Message($token);

// Send Text Message
$message->send('星爆氣流斬');

// Upload Image
$message->send('C8763', ['imageFile' => '/tmp/c8763.jpg']);

// Send Image use URL
$message->send('地城餐飲', [
    "imageThumbnail" => "https://scontent.ftpe8-2.fna.fbcdn.net/v/t1.0-9/126326514_822021611704301_376409361755588684_n.png?_nc_cat=100&ccb=2&_nc_sid=dd9801&_nc_ohc=qgM2skn4aBAAX_-ajD9&_nc_ht=scontent.ftpe8-2.fna&oh=1362f98ef4e097fb66910017daa2aa94&oe=5FFE9DC9",
    "imageFullsize" => "https://scontent.ftpe8-2.fna.fbcdn.net/v/t1.0-9/126326514_822021611704301_376409361755588684_n.png?_nc_cat=100&ccb=2&_nc_sid=dd9801&_nc_ohc=qgM2skn4aBAAX_-ajD9&_nc_ht=scontent.ftpe8-2.fna&oh=1362f98ef4e097fb66910017daa2aa94&oe=5FFE9DC9",
]);

// Send Sticker
$message->send('blabla', [
    "stickerPackageId" => 2,
    "stickerId" => 520
]);

// Send Message, But Not NOtification
$message->send('系統下線啦！！！！！', ["notificationDisabled" => true]);
```

### getStatus &amp; checkStatus

[](#getstatus--checkstatus)

```
$apiInfo = $message->getStatus();

if ($message->checkStatus()) {
    echo 'API正常運行中';
}
```

### Get API Rate Limit Info after lastest query

[](#get-api-rate-limit-info-after-lastest-query)

```
var_dump($message->rateLimit);
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1971d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f6a3b6bd719b362033bfe232110ee4f3cf0fd3758430ddffdd1577530b322509?d=identicon)[postoor](/maintainers/postoor)

---

Top Contributors

[![postoor](https://avatars.githubusercontent.com/u/4608920?v=4)](https://github.com/postoor "postoor (1 commits)")

### Embed Badge

![Health badge](/badges/postoor-line-notify-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/postoor-line-notify-sdk/health.svg)](https://phpackages.com/packages/postoor-line-notify-sdk)
```

###  Alternatives

[minishlink/web-push

Web Push library for PHP

1.9k12.0M52](/packages/minishlink-web-push)[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)[guanguans/notify

Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

682104.9k7](/packages/guanguans-notify)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
