PHPackages                             chez14/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. chez14/line-notify-sdk

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

chez14/line-notify-sdk
======================

LINE Notify PHP SDK

v0.1.1(7y ago)32593MITPHP

Since Jun 4Pushed 7y agoCompare

[ Source](https://github.com/chez14/line-notify-sdk-php)[ Packagist](https://packagist.org/packages/chez14/line-notify-sdk)[ RSS](/packages/chez14-line-notify-sdk/feed)WikiDiscussions master Synced 3w ago

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

line-notify-sdk-php
===================

[](#line-notify-sdk-php)

Line Notify SDK Client for PHP. Generate Auth URL, resolve authcode to token, and send messages directly.

About the LINE API
==================

[](#about-the-line-api)

See the official API documentation for more information.

English: [notify-bot.line.me/doc/en](https://notify-bot.line.me/doc/en)

Japanese: [notify-bot.line.me/doc/ja/](https://notify-bot.line.me/doc/ja/)

Getting Started
===============

[](#getting-started)

Installation
------------

[](#installation)

Use [Composer](https://getcomposer.org) to pull this library.

```
$ composer require chez14/line-notify-sdk
```

Create a Channel
----------------

[](#create-a-channel)

1. Create a LINE Notify Client, go to [LINE Notify Service Creator](https://notify-bot.line.me/my/services/new), and register new Service.
2. Go to [LINE Notify Service Manager](https://notify-bot.line.me/my/services/), open your service, and grab the Client Secret and Client ID.

Creating API Instance
---------------------

[](#creating-api-instance)

Create a new object from `LINE\Notify\Api`. Don't forget to supply both `client_id` and `client_secret` to the parameter.

```
$api = new LINE\Notify\Api([
    "client_id" => '0123456789',
    "client_secret" => '00112233445566778899aabbccddeeff'
]);
```

After that, you can use your get your auth code, and do some OAuth job.

```
$login = LINE\Notify\Token::generateAuthUrl($api, "http://localhost:8087/oauthcallback.php", "stateA");
// will produce:
// https://notify-bot.line.me/oauth/authorize?response_type=code&client_id=0123456789&redirect_uri=http%3A%2F%2Flocalhost%3A8087%2Foauthcallback.php&scope=notify&state=stateA

// On oauthcallback.php
$token = LINE\Notify\Token::fromAuthCode($lineApi, $_GET['code'], "http://localhost:8087/oauthcallback.php");
$api->setToken($token);

$notify = new LINE\Notify\Notify($api);
$notify->notify("HELLO!", null, 1, 106);
```

That, will produce something like:

[![Line notify screenshoot](.assets/line-chrome-blurred.png)](.assets/line-chrome-blurred.png)

Check our documentation page to get more info about this library classes, and see our [`examples` folder](examples/) to get more examples.

Go beyond, and plus ultra!
--------------------------

[](#go-beyond-and-plus-ultra)

Check this API Documentation (tbd), and check LINE Notify Bot's corresponding documentations.

Have fun!

[![All Might - Thumbs Up](https://camo.githubusercontent.com/699501959fe6cd5129ec38d41f77039296136b39e1c642de994a7d9fd2b3f05c/68747470733a2f2f7468756d62732e6766796361742e636f6d2f4772616e6453637261746368794369636164612d736d616c6c2e676966)](https://camo.githubusercontent.com/699501959fe6cd5129ec38d41f77039296136b39e1c642de994a7d9fd2b3f05c/68747470733a2f2f7468756d62732e6766796361742e636f6d2f4772616e6453637261746368794369636164612d736d616c6c2e676966)

License
=======

[](#license)

[MIT](LICENSE).

Bug Report
==========

[](#bug-report)

Please, if you have any feedback or bug report for this lib, submit it to the issue tracker. If you concern about the security and privacy, you can PGP-encrypt it using [Chez14's Keybase](https://keybase.io/encrypt#chez14), and submit it as an issue.

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community8

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

2586d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5555026?v=4)[Chris Qiang](/maintainers/chez14)[@chez14](https://github.com/chez14)

---

Top Contributors

[![chez14](https://avatars.githubusercontent.com/u/5555026?v=4)](https://github.com/chez14 "chez14 (10 commits)")

---

Tags

composerline-botline-notifyphp

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/chez14-line-notify-sdk/health.svg)](https://phpackages.com/packages/chez14-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.3M47](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/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)
