承接 revolution/laravel-line-sdk 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

revolution/laravel-line-sdk

最新稳定版本:4.1.0

Composer 安装命令:

composer require revolution/laravel-line-sdk

包简介

LINE SDK for Laravel

README 文档

README

packagist tests Maintainability Code Coverage

Ask DeepWiki

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.2
  • Laravel >= 11.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) 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)

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

Quick Start

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

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 URL in 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

统计信息

  • 总下载量: 34.28k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 20
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 20
  • Watchers: 3
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固