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(6y ago)32593MITPHP

Since Jun 4Pushed 6y 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 6d 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 43% 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

2540d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/daaabb160acffab2c30a9a14ba5c2d3c8da48d395af354a7378ac465751525d2?d=identicon)[chez14](/maintainers/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

[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)[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)

PHPackages © 2026

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