PHPackages                             gcreate/line\_notify - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. gcreate/line\_notify

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

gcreate/line\_notify
====================

use line notify plugin for laravel

01PHP

Since Jun 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/meow-Kat/lineNotify)[ Packagist](https://packagist.org/packages/gcreate/line_notify)[ RSS](/packages/gcreate-line-notify/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

LineNotify
==========

[](#linenotify)

Use Line notify plugin for laravel

Install Package
---------------

[](#install-package)

```
composer require gcreate/line_notify

```

Register Package Service Provider
---------------------------------

[](#register-package-service-provider)

```
// config/app.php
'providers' => [
  ...
  Gcreate\LineNotify\LineNotifyServiceProvider::class,
  ...
],

```

Make Config
-----------

[](#make-config)

```
php artisan vendor:publish --tag=line-notify-config

```

Make Migration to Users Table
-----------------------------

[](#make-migration-to-users-table)

```
php artisan vendor:publish --tag=line-notify-migration

php artisan migrate

```

> add line\_notify\_access\_token column and line\_notify\_state column

Add .env Parameter
------------------

[](#add-env-parameter)

```
LineNotifyClientID=Your Line Service ClientID
LineNotifyClientSecret=Your Line Service ClientSecret

```

Usage
-----

[](#usage)

### Binding User Line

[](#binding-user-line)

```
use Gcreate\LineNotify\Controllers\LineNotify;

$lineNotify = new LineNotify();

$redirectUrl = $lineNotify->bindLineUrl($userModel)

return redirect($redirectUrl);    // go binding line page

```

> If binding user success, you need to save user Line notify token from callback

### Recvive User Line Callback

[](#recvive-user-line-callback)

To your routes/web.php add this

```
Route::post( 'your/callback/url', [yourController::class, 'callback'])->name('line-notify.callback');

```

Go to your Middleware/VerifyCsrfToken.php add this

```
protected $except = [
    'your/callback/url',
];

```

```
use Gcreate\LineNotify\Controllers\LineNotify;

$lineNotify = new LineNotify();

$callbackStatus = $lineNotify->callback($request, $user);

```

### Revoke User Line

[](#revoke-user-line)

```
use Gcreate\LineNotify\Controllers\LineNotify;

$lineNotify = new LineNotify();

$result = $lineNotify->revoke($user);    // true | error
if($result){
    // ...do something
}

```

### Send Message

[](#send-message)

```
use Gcreate\LineNotify\Controllers\LineNotify;

$lineNotify = new LineNotify();

$lineNotify->send($user,$text);

```

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity22

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/f90465bdb6373cab60781420ff86e79786e4420e3a82128b5092a9a629186709?d=identicon)[meow-Kat](/maintainers/meow-Kat)

---

Top Contributors

[![meow-Kat](https://avatars.githubusercontent.com/u/76527080?v=4)](https://github.com/meow-Kat "meow-Kat (11 commits)")

### Embed Badge

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

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

PHPackages © 2026

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