PHPackages                             fcorz/laravel-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. fcorz/laravel-line-notify

ActiveLibrary

fcorz/laravel-line-notify
=========================

My awesome package

1.0.0(5y ago)645MITPHPPHP ^7.2

Since Feb 25Pushed 5y ago1 watchersCompare

[ Source](https://github.com/fcorz/laravel-line-notify)[ Packagist](https://packagist.org/packages/fcorz/laravel-line-notify)[ Docs](https://github.com/fcorz/laravel-line-notify)[ RSS](/packages/fcorz-laravel-line-notify/feed)WikiDiscussions main Synced 2d ago

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

 laravel-line-notify
=====================

[](#-laravel-line-notify-)

🌈 laravel line notify notification

[![Latest Version on Packagist](https://camo.githubusercontent.com/12366708a796cf2742e2f4e4c36869877dffb159328507ab1ea3b7c49b420cd7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66636f727a2f6c61726176656c2d6c696e652d6e6f746966792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fcorz/laravel-line-notify)[![Build Status](https://camo.githubusercontent.com/e00c1bb289d09dbbe0abc6a4127ce3ebeb0ba4158fb4049281c4c99b1d6a7dd3/68747470733a2f2f7472617669732d63692e6f72672f66636f727a2f6c61726176656c2d6c696e652d6e6f746966792e7376673f6272616e63683d6d61696e)](https://travis-ci.org/fcorz/laravel-line-notify)[![Total Downloads](https://camo.githubusercontent.com/781064ceb2da93bd710423444757829ccfe1f362ac1eaf1668d961c35b3f4b4a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f66636f727a2f6c61726176656c2d6c696e652d6e6f746966792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fcorz/laravel-line-notify)[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)

Laravel implements the line notify message notification function. Including the binding of code in exchange for access token and notification channel message push.

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

[](#installation)

you can install the package via composer:

```
composer require fcorz/laravel-line-notify
```

publish config

```
php artisan vendor:publish --provider="Fcorz\LaravelLineNotify\LaravelLineNotifyServiceProvider"
```

Usage
-----

[](#usage)

### simple

[](#simple)

```
// get access_token by code
app('line-notify')->getAccessToken("O97YoWeYMV6vW3uYPFgPAC");

// response
{
   "status":200,
   "message":"access_token is issued",
   "access_token":"1vIvPoq4aG4UOJYoQ6oriAUPvDNxxxxxxxxxxx"
}

// notify
$message = (new LaravelLineMessage())->message('hello world');
app('line-notify')->sendNotify($message, "access_token");
```

### facade

[](#facade)

```
// get access_token by code
LaravelLineNotifyFacade::getAccessToken("O97YoWeYMV6vW3uYPFgPAC");

// notify
$message = (new LaravelLineMessage())->message('hello world');
LaravelLineNotifyFacade::sendNotify($message, "access_token");
```

### notification

[](#notification)

#### user model notifiable

[](#user-model-notifiable)

```
public function routeNotificationForLine($notification)
{
    return $this->notify_access_token;
}
```

#### create your notification ( you can also not use the queue )

[](#create-your-notification--you-can-also-not-use-the-queue-)

```
use App\Models\UserMessage;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Support\Facades\Notification;

class LineNotification extends Notification implements ShouldQueue
{
    use Queueable;

    protected $message;

    public function __construct($message, $delay = 0)
    {
        $this->queue = 'notification';

        $this->delay = $delay;

        $this->message = $message;
    }

    /**
     * Get the notification's delivery channels.
     *
     * @param mixed $notifiable
     * @return array
     */
    public function via($notifiable)
    {
        return ['line'];
    }

    /**
     * @param $notifable
     * @return LineTemplateService
     */
    public function toLineNotify($notifable)
    {
        return (new LaravelLineMessage())->message($this->message);
    }
}
```

#### call notify()

[](#call-notify)

```
$receiver->notify(new LineNotification('hello world'));
```

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [fengchen](https://github.com/fcorz)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

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

1902d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1571a2cbe17397bfe9610779bc18646a7cf963ece7be12402c51cb595261e17c?d=identicon)[fengchenorz](/maintainers/fengchenorz)

---

Top Contributors

[![fcorz](https://avatars.githubusercontent.com/u/25574295?v=4)](https://github.com/fcorz "fcorz (13 commits)")

---

Tags

fcorzlaravel-line-notify

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[laravel/slack-notification-channel

Slack Notification Channel for laravel.

89069.7M111](/packages/laravel-slack-notification-channel)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[laravel-notification-channels/fcm

FCM (Firebase Cloud Messaging) Notifications Driver for Laravel

5917.0M16](/packages/laravel-notification-channels-fcm)[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)

PHPackages © 2026

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