PHPackages                             kpherox/laravel-notification-line - 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. kpherox/laravel-notification-line

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

kpherox/laravel-notification-line
=================================

LINE Notifications Driver

1.0.0(7y ago)1181MITPHPPHP &gt;=5.6.4

Since Aug 12Pushed 7y agoCompare

[ Source](https://github.com/kPherox/laravel-notification-line)[ Packagist](https://packagist.org/packages/kpherox/laravel-notification-line)[ Docs](https://github.com/kPherox/laravel-notification-line)[ RSS](/packages/kpherox-laravel-notification-line/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (1)

LINE notification channels for Laravel 5.3+
===========================================

[](#line-notification-channels-for-laravel-53)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d803adba7df523e99090b6e66eb5514cbb682b2fd1895e020d93ed740beff550/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b706865726f782f6c61726176656c2d6e6f74696669636174696f6e2d6c696e652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kpherox/laravel-notification-line)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/9f515f4f7f370942f2943b2bccb7fe5166b3fe33c5c8ea0ff7c22e6c968a71a3/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6b706865726f782f6c61726176656c2d6e6f74696669636174696f6e2d6c696e652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/kpherox/laravel-notification-line)[![StyleCI](https://camo.githubusercontent.com/804b37008a50916ad1079f2bf9225f7b0a7c9f669cf5898b37c02621d6b62d2e/68747470733a2f2f7374796c6563692e696f2f7265706f732f3133383235363338362f736869656c64)](https://styleci.io/repos/138256386)[![SensioLabsInsight](https://camo.githubusercontent.com/3f252f35660a6bff408ec794acdec010ff7b84b5d28a6f08547eef14927bbf51/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f38313339633830342d343938382d346639612d616331652d3639653566393430383163342e7376673f7374796c653d666c61742d737175617265)](https://insight.sensiolabs.com/projects/8139c804-4988-4f9a-ac1e-69e5f94081c4)[![Quality Score](https://camo.githubusercontent.com/8a53441d7c1f3854e54c8503b42107f27b4be263746efc0580dbd309dd3277af/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f6b706865726f782f6c61726176656c2d6e6f74696669636174696f6e2d6c696e652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/kpherox/laravel-notification-line)[![Code Coverage](https://camo.githubusercontent.com/5f85ec75eff5bba23d421b05ae17bc0b4906e0b4d3e91719c9d39aa3851213da/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f6b706865726f782f6c61726176656c2d6e6f74696669636174696f6e2d6c696e652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/kpherox/laravel-notification-line/?branch=master)[![Total Downloads](https://camo.githubusercontent.com/775df9896eab1e7fbfd616659d50ce9108b3071feb543cff100910ee64006f05/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b706865726f782f6c61726176656c2d6e6f74696669636174696f6e2d6c696e652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kpherox/laravel-notification-line)

This package makes it easy to send notifications using [LINE](https://developers.line.me/) with Laravel 5.3.

Contents
--------

[](#contents)

- [Installation](#installation)
    - [Setting up the LINE service](#setting-up-the-line-service)
- [Usage](#usage)
    - [Text Message](#text-message)
    - [Custom User](#custom-user)
- [Changelog](#changelog)
- [Testing](#testing)
- [Security](#security)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)

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

[](#installation)

You can install this package via composer:

```
composer require kpherox/laravel-notification-line

```

### Setting up the LINE service

[](#setting-up-the-line-service)

1. [Start using Messaging API](https://developers.line.me/console/register/messaging-api/provider/)
    - Select Plan: `Developer Trial`, Or upgrade to `Pro` after selecting `Free`.
2. Click the `Messaging settings` button on your channel.
3. Paste your channel's access token and secret, in your `services.php` config file:

```
...
'line' => [
	'token'    => env('LINE_CHANNEL_ACCESS_TOKEN'),
	'secret' => env('LINE_CHANNEL_SECRET'),
	'userd'   => env('LINE_DEFAULT_USER_ID')
]
...

```

Usage
-----

[](#usage)

Follow Laravel's documentation to add the channel to your Notification class.

### Text Message

[](#text-message)

```
use NotificationChannels\Line\LineChannel;
use NotificationChannels\Line\LineMessage;

class NewsWasPublished extends Notification
{

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

    public function toLine($notifiable)
    {
        return new LineMessage('Laravel notifications are awesome!'/*, 'Multiple message. Max: 5'*/);
    }
}
```

### Custom User

[](#custom-user)

If you need to change the user, add the `routeNotificationForLine` method to the model:

```
class LineUser extends Eloquent
{
    use Notifiable;

    public function routeNotificationForLine()
    {
        return $this->id;
    }
...

```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Security
--------

[](#security)

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

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [kPherox](https://github.com/kPherox)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

2879d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/88674005?v=4)[kPherox](/maintainers/kPherox)[@kpherox](https://github.com/kpherox)

---

Top Contributors

[![kphrx](https://avatars.githubusercontent.com/u/13777426?v=4)](https://github.com/kphrx "kphrx (21 commits)")[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (7 commits)")[![mpociot](https://avatars.githubusercontent.com/u/804684?v=4)](https://github.com/mpociot "mpociot (7 commits)")[![themsaid](https://avatars.githubusercontent.com/u/4332182?v=4)](https://github.com/themsaid "themsaid (4 commits)")[![irazasyed](https://avatars.githubusercontent.com/u/1915268?v=4)](https://github.com/irazasyed "irazasyed (3 commits)")[![casperboone](https://avatars.githubusercontent.com/u/15815208?v=4)](https://github.com/casperboone "casperboone (2 commits)")[![JayBizzle](https://avatars.githubusercontent.com/u/340752?v=4)](https://github.com/JayBizzle "JayBizzle (1 commits)")[![lukewaite](https://avatars.githubusercontent.com/u/618130?v=4)](https://github.com/lukewaite "lukewaite (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kpherox-laravel-notification-line/health.svg)

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

###  Alternatives

[laravel-notification-channels/webpush

Web Push Notifications driver for Laravel.

8985.1M25](/packages/laravel-notification-channels-webpush)[spatie/laravel-health

Monitor the health of a Laravel application

87411.3M154](/packages/spatie-laravel-health)[laravel-notification-channels/apn

Apple APN Push Notification Channel

2022.1M6](/packages/laravel-notification-channels-apn)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1613.2M11](/packages/laravel-notification-channels-microsoft-teams)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2381.4M13](/packages/laravel-notification-channels-discord)[illuminate/mail

The Illuminate Mail package.

5910.4M475](/packages/illuminate-mail)

PHPackages © 2026

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