Skip to main content

Overview

revolution/laravel-line-sdk makes the official LINE SDK easy to use in Laravel applications. It provides four features: Webhook handling, Bot Facade, Laravel Notifications integration, and LINE Login via Socialite.
This package requires PHP 8.3 or higher and Laravel 12.0 or higher.

Installation

Configuration

LINE Developers console

Create channels in the LINE Developers console.
You can no longer create a Messaging API channel directly from the LINE Developers Console. First create a LINE Official Account using the LINE Official Account Manager, then enable Messaging API from the account manager.
Create two channels:

.env

Publish config (optional)

Quick start

The fastest path to a working bot.
1

Create a new Laravel project

2

Configure .env

3

Publish the default Listener

This generates MessageListener in app/Listeners/Line/.
4

Deploy to a web server

LINE requires a publicly accessible URL to deliver webhooks. Local servers are not supported.Set the Webhook URL in the LINE Developers console:
5

Add the bot as a friend and test it

Use the QR code from the Messaging API channel to add the bot. Send a message and MessageListener will echo it back.

Documentation

Webhook / Bot

Webhook routing and Bot Facade for sending and receiving messages.

Notifications

Send LINE messages through the Laravel Notification System.

Socialite (LINE Login)

OAuth2 authentication with LINE Login via Socialite.
Last modified on May 3, 2026

Related topics

LINE SDK for Laravel