PHPackages                             bogiesoft/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. bogiesoft/laravel-line-sdk

ActiveLibrary[API Development](/categories/api)

bogiesoft/laravel-line-sdk
==========================

LINE SDK for Laravel

1.0(4y ago)041MITPHPPHP ^8.0

Since Feb 26Pushed 3y ago1 watchersCompare

[ Source](https://github.com/bogiesoft/laravel-line-sdk)[ Packagist](https://packagist.org/packages/bogiesoft/laravel-line-sdk)[ RSS](/packages/bogiesoft-laravel-line-sdk/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (5)Versions (3)Used By (0)

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

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

Features
--------

[](#features)

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

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

[](#requirements)

- PHP &gt;= 8.0
- Laravel &gt;= 9.0

Versioning
----------

[](#versioning)

- Basic : semver
- Drop old PHP or Laravel version : `+0.1`. composer should handle it well.
- Support only latest major version (`master` branch), but you can PR to old branches.

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

[](#installation)

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

```

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

[](#configuration)

### .env

[](#env)

Set up in LINE Developers console.

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=

LINE_NOTIFY_CLIENT_ID=
LINE_NOTIFY_CLIENT_SECRET=
LINE_NOTIFY_REDIRECT=
LINE_NOTIFY_PERSONAL_ACCESS_TOKEN=

```

### Publishing(Optional)

[](#publishingoptional)

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

```

### Short Facade(Optional)

[](#short-facadeoptional)

Recent Laravel uses a full namespace.

```
use Bogiesoft\Line\Facades\Bot;

Bot::replyText();
```

If you want to use the short Facade, you can add it manually in `config/app.php`.

```
    'aliases' => [
        'LINE' => Bogiesoft\Line\Facades\Bot::class,
    ],
```

```
use LINE;

LINE::replyText();
```

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)

```
composer create-project --prefer-dist laravel/laravel line-bot "8.*"
cd ./line-bot
composer require bogiesoft/laravel-line-sdk

```

Edit `.env`

```
LINE_BOT_CHANNEL_TOKEN=
LINE_BOT_CHANNEL_SECRET=

```

Add `shouldDiscoverEvents()` to `app/Providers/EventServiceProvider`

```
/**
 * Determine if events and listeners should be automatically discovered.
 *
 * @return bool
 */
public function shouldDiscoverEvents()
{
    return true;
}
```

Publishing default Listeners

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

```

### 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/notify.md)

Demo
----

[](#demo)

LICENSE
-------

[](#license)

MIT

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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

1589d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3bfadb7a013171bae429a7d9d32ab2e0b82edc4a6af9b34e2280e58ddb0a66e8?d=identicon)[bogiesoft](/maintainers/bogiesoft)

---

Top Contributors

[![bogiesoft](https://avatars.githubusercontent.com/u/6611635?v=4)](https://github.com/bogiesoft "bogiesoft (7 commits)")

---

Tags

laravelsdkbotline

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.8k3](/packages/defstudio-telegraph)[revolution/laravel-line-sdk

LINE SDK for Laravel

2237.9k](/packages/revolution-laravel-line-sdk)[resend/resend-laravel

Resend for Laravel

1222.7M9](/packages/resend-resend-laravel)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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