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)0254MITPHPPHP &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 today

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 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

2025d 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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k14](/packages/tempest-framework)[guanguans/notify

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

687114.3k8](/packages/guanguans-notify)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

254168.5k](/packages/erag-laravel-disposable-email)

PHPackages © 2026

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