koramit/laravel-line-bot

Laravel LINE bot integration

Maintainers

Package info

github.com/koramit/laravel-line-bot

pkg:composer/koramit/laravel-line-bot

Statistics

Installs: 97

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.5.29 2026-03-23 12:17 UTC

README

Installation

composer require koramit/laravel-line-bot

php artisan vendor:publish --provider="Koramit\LaravelLINEBot\LINEBotServiceProvider"

php artisan migrate

# .env required configs
LINE_BOT_BASIC_ID=
LINE_BOT_CHANNEL_ID=
LINE_BOT_CHANNEL_SECRET=
LINE_BOT_CHANNEL_ACCESS_TOKEN=

# .env optional configs
LINE_BOT_VERIFY_CODE_LENGTH=4
LINE_BOT_PUSH_ENDPOINT=https://api.line.me/v2/bot/message/push
LINE_BOT_REPLY_ENDPOINT=https://api.line.me/v2/bot/message/reply
LINE_BOT_LOADING_ANIMATION_ENDPOINT=https://api.line.me/v2/bot/chat/loading/start
LINE_BOT_GET_USER_PROFILE_ENDPOINT=https://api.line.me/v2/bot/profile/
LINE_VALIDATE_MESSAGE_OBJECT_ENDPOINT=https://api.line.me/v2/bot/message/validate/push
LINE_API_TIMEOUT_SECONDS=12
LINE_API_CONNECT_TIMEOUT_SECONDS=4
LINE_API_RETRY_TIMES=3
LINE_API_RETRY_DELAY_MILLISECONDS=200