laravel-line-sdk maintained by revolution
Last update
2026/04/14 13:04
License
Require
- ext-json *
- laravel/socialite ^5.0
- php ^8.3
- illuminate/support ^12.0||^13.0
- linecorp/line-bot-sdk ^12.0
Last update
2026/04/14 13:01
License
Require
- php ^8.3
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^12.0||^13.0
- linecorp/line-bot-sdk ^12.0
Last update
2026/02/22 00:44
License
Require
- php ^8.3
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^12.0||^13.0
- linecorp/line-bot-sdk ^12.0
Last update
2025/10/22 09:04
License
Require
- php ^8.2
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^11.0||^12.0
- linecorp/line-bot-sdk ^11.0||^12.0
Last update
2025/05/19 02:58
License
Require
- ext-json *
- laravel/socialite ^5.0
- php ^8.2
- illuminate/support ^11.0||^12.0
- linecorp/line-bot-sdk ^10.0||^11.0
Last update
2025/03/27 09:11
License
Require
- php ^8.2
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^11.0||^12.0
- linecorp/line-bot-sdk ^10.0||^11.0
Last update
2025/02/23 04:27
License
Require
- php ^8.2
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^11.0||^12.0
- linecorp/line-bot-sdk ^10.0
Last update
2024/12/29 12:58
License
Require
- php ^8.1
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^10.0||^11.0
- linecorp/line-bot-sdk ^9.0||^10.0
Last update
2024/12/06 04:30
License
Require
- php ^8.1
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^10.0||^11.0
- linecorp/line-bot-sdk ^9.0
Last update
2024/11/17 11:20
License
Require
- php ^8.1
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^10.0||^11.0
- linecorp/line-bot-sdk ^9.0
Last update
2024/10/10 06:29
License
Require
- php ^8.1
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^10.0||^11.0
- linecorp/line-bot-sdk ^9.0
Last update
2024/10/09 08:38
License
Require
- php ^8.1
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^10.0||^11.0
- linecorp/line-bot-sdk ^9.0
Last update
2024/10/09 03:48
License
Require
- php ^8.1
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^10.0||^11.0
- linecorp/line-bot-sdk ^9.0
Last update
2024/10/08 06:13
License
Require
- php ^8.1
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^10.0||^11.0
- linecorp/line-bot-sdk ^9.0
Last update
2024/10/08 03:26
License
Require
- php ^8.1
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^10.0||^11.0
- linecorp/line-bot-sdk ^9.0
Last update
2024/10/08 02:51
License
Require
- php ^8.1
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^10.0||^11.0
- linecorp/line-bot-sdk ^9.0
Last update
2024/10/07 10:26
License
Require
- php ^8.1
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^10.0||^11.0
- linecorp/line-bot-sdk ^9.0
Last update
2024/10/07 09:59
License
Require
- php ^8.1
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^10.0||^11.0
- linecorp/line-bot-sdk ^9.0
Last update
2024/10/07 09:38
License
Require
- php ^8.1
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^10.0||^11.0
- linecorp/line-bot-sdk ^9.0
Last update
2024/10/02 10:22
License
Require
- php ^8.1
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^10.0||^11.0
- linecorp/line-bot-sdk ^9.0
Last update
2024/09/16 10:44
License
Require
- php ^8.1
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^10.0||^11.0
- linecorp/line-bot-sdk ^9.0
Last update
2024/08/25 04:32
License
Require
- php ^8.1
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^10.0||^11.0
- linecorp/line-bot-sdk ^9.0
Last update
2024/05/29 03:20
License
Require
- php ^8.1
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^10.0||^11.0
- linecorp/line-bot-sdk ^9.0
Last update
2024/05/28 04:44
License
Require
- php ^8.1
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^10.0||^11.0
- linecorp/line-bot-sdk ^9.0
Last update
2024/02/20 06:23
License
Require
- php ^8.1
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^10.0||^11.0
- linecorp/line-bot-sdk ^9.0
Last update
2023/08/03 03:09
License
Require
- php ^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^9.0||^10.0
- linecorp/line-bot-sdk ^9.0
Last update
2023/05/30 09:14
License
Require
- php ^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^9.0||^10.0
- linecorp/line-bot-sdk ^8.0
Last update
2023/05/30 08:57
License
Require
- php ^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^9.0||^10.0
- linecorp/line-bot-sdk ^8.0
Last update
2023/04/17 02:19
License
Require
- php ^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^9.0||^10.0
- linecorp/line-bot-sdk ^7.0
Last update
2023/04/06 03:25
License
Require
- php ^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^9.0||^10.0
- linecorp/line-bot-sdk ^7.0
Last update
2023/04/06 03:18
License
Require
- php ^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^9.0||^10.0
- linecorp/line-bot-sdk ^7.0
Last update
2023/04/06 03:07
License
Require
- php ^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^9.0||^10.0
- linecorp/line-bot-sdk ^7.0
Last update
2023/02/27 03:29
License
Require
- php ^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^9.0||^10.0
- linecorp/line-bot-sdk ^7.0
Last update
2023/02/27 03:20
License
Require
- php ^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^9.0||^10.0
- linecorp/line-bot-sdk ^7.0
Last update
2023/02/27 03:18
License
Require
- php ^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^9.0||^10.0
- linecorp/line-bot-sdk ^7.0
Last update
2023/01/28 03:28
License
Require
- php ^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^9.0||^10.0
- linecorp/line-bot-sdk ^7.0
Last update
2022/11/25 01:24
License
Require
- php ^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^9.0
- linecorp/line-bot-sdk ^7.0
Last update
2022/02/17 05:57
License
Require
- php ^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^9.0
- linecorp/line-bot-sdk ^7.0
Last update
2022/01/22 03:03
License
Require
- php ^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^9.0
- linecorp/line-bot-sdk ^7.0
Last update
2021/12/01 11:49
License
Require
- php ^7.3||^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^6.0||^7.0||^8.0
- linecorp/line-bot-sdk ^6.0||^7.0
Last update
2021/04/07 04:02
License
Require
- php ^7.3||^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^6.0||^7.0||^8.0
- linecorp/line-bot-sdk ^6.0||^7.0
Last update
2021/03/11 14:20
License
Require
- php ^7.3||^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^6.0||^7.0||^8.0
- linecorp/line-bot-sdk ^6.0||^7.0
Last update
2021/01/01 09:47
License
Require
- php ^7.3||^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^6.0||^7.0||^8.0
- linecorp/line-bot-sdk ^6.0
Last update
2020/10/28 12:29
License
Require
- php ^7.2||^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^6.0||^7.0||^8.0
- linecorp/line-bot-sdk ^6.0
Last update
2020/10/28 10:05
License
Require
- php ^7.2||^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^6.0||^7.0||^8.0
- linecorp/line-bot-sdk ^6.0
Last update
2020/10/25 11:31
License
Require
- php ^7.2||^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^6.0||^7.0||^8.0
- linecorp/line-bot-sdk ^6.0
Last update
2020/10/24 11:56
License
Require
- php ^7.2||^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^6.0||^7.0||^8.0
- linecorp/line-bot-sdk ^6.0
Last update
2020/10/21 11:33
License
Require
- php ^7.2||^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^6.0||^7.0||^8.0
- linecorp/line-bot-sdk ^6.0
Last update
2020/10/21 08:17
License
Require
- php ^7.2||^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^6.0||^7.0||^8.0
- linecorp/line-bot-sdk ^6.0
Last update
2020/10/21 08:02
License
Require
- php ^7.2||^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^6.0||^7.0||^8.0
- linecorp/line-bot-sdk ^6.0
Last update
2020/10/21 02:16
License
Require
- php ^7.2||^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^6.0||^7.0||^8.0
- linecorp/line-bot-sdk ^6.0
Last update
2020/10/21 01:07
License
Require
- php ^7.2||^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^6.0||^7.0||^8.0
- linecorp/line-bot-sdk ^6.0
Last update
2020/10/20 01:07
License
Require
- php ^7.2||^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^6.0||^7.0||^8.0
- linecorp/line-bot-sdk ^6.0
Last update
2020/10/20 00:26
License
Require
- php ^7.2||^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^6.0||^7.0||^8.0
- linecorp/line-bot-sdk ^6.0
Last update
2020/10/19 06:29
License
Require
- php ^7.2||^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^6.0||^7.0||^8.0
- linecorp/line-bot-sdk ^6.0
Last update
2020/10/19 05:36
License
Require
- php ^7.2||^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^6.0||^7.0||^8.0
- linecorp/line-bot-sdk ^5.0
Last update
2020/10/19 02:15
License
Require
- php ^7.2||^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^6.0||^7.0||^8.0
- linecorp/line-bot-sdk ^5.0
Last update
2020/10/19 00:00
License
Require
- php ^7.2||^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^6.0||^7.0||^8.0
- linecorp/line-bot-sdk ^5.0
Last update
2020/10/18 23:42
License
Require
- php ^7.2||^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^6.0||^7.0||^8.0
- linecorp/line-bot-sdk ^5.0
Last update
2020/10/18 09:36
License
Require
- php ^7.2||^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^6.0||^7.0||^8.0
- linecorp/line-bot-sdk ^5.0
Last update
2020/10/18 08:47
License
Require
- php ^7.2||^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^6.0||^7.0||^8.0
- linecorp/line-bot-sdk ^5.0
Last update
2020/10/18 08:42
License
Require
- php ^7.2||^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^6.0||^7.0||^8.0
- linecorp/line-bot-sdk ^5.0
Last update
2020/10/18 08:32
License
Require
- php ^7.2||^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/routing ^6.0||^7.0||^8.0
- illuminate/support ^6.0||^7.0||^8.0
- linecorp/line-bot-sdk ^5.0
Last update
2020/10/18 08:08
License
Require
- php ^7.2||^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/routing ^6.0||^7.0||^8.0
- illuminate/support ^6.0||^7.0||^8.0
- linecorp/line-bot-sdk ^5.0
Last update
2020/10/18 03:04
License
Require
- php ^7.2||^8.0
- ext-json *
- laravel/socialite ^5.0
- illuminate/support ^6.0||^7.0||^8.0
- linecorp/line-bot-sdk ^5.0
LINE SDK for Laravel
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
- PHP >= 8.3
- Laravel >= 12.0
Installation
composer require revolution/laravel-line-sdk
Uninstall
composer remove revolution/laravel-line-sdk
- Delete related files. See below.
Configuration
.env
Set up in LINE Developers console. https://developers.line.biz/
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)andChannel secret. SetWebhook URL - LINE Login : Get
Channel IDandChannel secret. SetCallback URL
LINE_BOT_CHANNEL_TOKEN=
LINE_BOT_CHANNEL_SECRET=
LINE_LOGIN_CLIENT_ID=
LINE_LOGIN_CLIENT_SECRET=
LINE_LOGIN_REDIRECT=
Publishing(Optional)
php artisan vendor:publish --tag=line-config
Quick Start
Prepare
- Create
Messaging APIchannel in LINE Developers console. - Get
Channel access token (long-lived),Channel secretand QR code. - A web server that can receive webhooks from LINE. Not possible on a normal local server.
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
- Set
Webhook URLin LINE Developers console.https://example.com/line/webhook - Verify Webhook URL.
Add bot as a friend.
- Using QR code.
Send test message
Bot returns same message.
Documents
Demo
https://github.com/invokable/laravel-line-project
LICENSE
MIT