PHPackages                             revolution/laravel-line-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. [API Development](/categories/api)
4. /
5. revolution/laravel-line-sdk

ActiveLibrary[API Development](/categories/api)

revolution/laravel-line-sdk
===========================

LINE SDK for Laravel

4.2.0(2mo ago)2235.8k↓19.2%8[1 issues](https://github.com/invokable/laravel-line-sdk/issues)MITPHPPHP ^8.3CI passing

Since Oct 18Pushed 2mo ago3 watchersCompare

[ Source](https://github.com/invokable/laravel-line-sdk)[ Packagist](https://packagist.org/packages/revolution/laravel-line-sdk)[ GitHub Sponsors](https://github.com/invokable)[ RSS](/packages/revolution-laravel-line-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (64)Used By (0)

LINE SDK for Laravel
====================

[](#line-sdk-for-laravel)

[![packagist](https://camo.githubusercontent.com/4d6ec0fe70ede35ee1a6a29ae95fd3ec6d4745e734417fe0967d23b9aac8c31e/68747470733a2f2f62616467656e2e6e65742f7061636b61676973742f762f7265766f6c7574696f6e2f6c61726176656c2d6c696e652d73646b)](https://packagist.org/packages/revolution/laravel-line-sdk)[![tests](https://github.com/invokable/laravel-line-sdk/actions/workflows/tests.yml/badge.svg)](https://github.com/invokable/laravel-line-sdk/actions/workflows/tests.yml)[![Maintainability](https://camo.githubusercontent.com/b7047642c2ea41be28a88072dc23cf3ed3207d1f18f5eb2cd3d6d003566407d4/68747470733a2f2f716c74792e73682f6261646765732f39333765383332302d396662332d346364612d626331622d6264363332353332356632352f6d61696e7461696e6162696c6974792e737667)](https://qlty.sh/gh/invokable/projects/laravel-line-sdk)[![Code Coverage](https://camo.githubusercontent.com/db86ed1a4ec316d5ca9e08fa94c11103c2ca79569d3fc98084638b8effff7010/68747470733a2f2f716c74792e73682f6261646765732f39333765383332302d396662332d346364612d626331622d6264363332353332356632352f746573745f636f7665726167652e737667)](https://qlty.sh/gh/invokable/projects/laravel-line-sdk)

[![Ask DeepWiki](https://camo.githubusercontent.com/0f5ae213ac378635adeb5d7f13cef055ad2f7d9a47b36de7b1c67dbe09f609ca/68747470733a2f2f6465657077696b692e636f6d2f62616467652e737667)](https://deepwiki.com/invokable/laravel-line-sdk)

Features
--------

[](#features)

- Working with Laravel Event System. Including Webhook routing and controller.
- Extensible Bot Client.
- Working with Laravel Notification System(LINE Messaging API)
- Including Socialite drivers(LINE Login)

Requirements
------------

[](#requirements)

- PHP &gt;= 8.3
- Laravel &gt;= 12.0

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

[](#installation)

```
composer require revolution/laravel-line-sdk

```

### Uninstall

[](#uninstall)

```
composer remove revolution/laravel-line-sdk
```

- Delete related files. See below.

Configuration
-------------

[](#configuration)

### .env

[](#env)

Set up in LINE Developers console.

> **Note**: You can no longer create a Messaging API channel directly from the LINE Developers Console. To create a Messaging API channel, first create a LINE Official Account using the \[Create LINE Official Account\] button. Then, enable Messaging API usage from the LINE Official Account Manager.

Create two channels `Messaging API` and `LINE Login`.

- Messaging API : Get `Channel access token (long-lived)` and `Channel secret`. Set `Webhook URL`
- LINE Login : Get `Channel ID` and `Channel secret`. Set `Callback URL`

```
LINE_BOT_CHANNEL_TOKEN=
LINE_BOT_CHANNEL_SECRET=

LINE_LOGIN_CLIENT_ID=
LINE_LOGIN_CLIENT_SECRET=
LINE_LOGIN_REDIRECT=

```

### Publishing(Optional)

[](#publishingoptional)

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

```

Quick Start
-----------

[](#quick-start)

### Prepare

[](#prepare)

- Create `Messaging API` channel in LINE Developers console.
- Get `Channel access token (long-lived)`, `Channel secret` and QR code.
- A web server that can receive webhooks from LINE. Not possible on a normal local server.

### Create new Laravel project

[](#create-new-laravel-project)

```
laravel new line-bot
cd ./line-bot
composer require revolution/laravel-line-sdk

```

Edit `.env`

```
LINE_BOT_CHANNEL_TOKEN=
LINE_BOT_CHANNEL_SECRET=

```

Publishing Listeners

```
php artisan vendor:publish --tag=line-listeners

```

### Deploy to web server

[](#deploy-to-web-server)

- Set `Webhook URL` in LINE Developers console. `https://example.com/line/webhook`
- Verify Webhook URL.

### Add bot as a friend.

[](#add-bot-as-a-friend)

- Using QR code.

### Send test message

[](#send-test-message)

Bot returns same message.

Documents
---------

[](#documents)

- [Messaging API / Bot](./docs/bot.md)
- [Socialite](./docs/socialite.md)
- [Notifications](./docs/notification.md)

Demo
----

[](#demo)

LICENSE
-------

[](#license)

MIT

###  Health Score

60

—

FairBetter than 99% of packages

Maintenance82

Actively maintained with recent releases

Popularity39

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity83

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 95.7% 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

Every ~32 days

Recently: every ~104 days

Total

62

Last Release

86d ago

Major Versions

1.x-dev → 2.0.02022-01-22

2.x-dev → 3.0.02023-05-30

3.5.0 → 4.0.02025-02-23

PHP version history (6 changes)1.0.0PHP ^7.2||^8.0

1.3.0PHP ^7.3||^8.0

2.0.0PHP ^8.0

3.2.0PHP ^8.1

4.0.0PHP ^8.2

4.2.0PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/77618633?v=4)[Revolution](/maintainers/revolution)[@Revolution](https://github.com/Revolution)

---

Top Contributors

[![kawax](https://avatars.githubusercontent.com/u/1502086?v=4)](https://github.com/kawax "kawax (287 commits)")[![devin-ai-integration[bot]](https://avatars.githubusercontent.com/in/811515?v=4)](https://github.com/devin-ai-integration[bot] "devin-ai-integration[bot] (5 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (4 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (3 commits)")[![codacy-badger](https://avatars.githubusercontent.com/u/23704769?v=4)](https://github.com/codacy-badger "codacy-badger (1 commits)")

---

Tags

laravellaravel-notificationslinelinebotsocialitelaravelsdkbotline

###  Code Quality

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/revolution-laravel-line-sdk/health.svg)

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

###  Alternatives

[linecorp/line-bot-sdk

SDK of the LINE BOT API for PHP

7323.0M21](/packages/linecorp-line-bot-sdk)[resend/resend-laravel

Resend for Laravel

1191.4M6](/packages/resend-resend-laravel)

PHPackages © 2026

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