LINE Messaging API SDK for PHP
Introduction
The LINE Messaging API SDK for PHP makes it easy to develop bots using LINE Messaging API, and you can create a sample bot within minutes.
Documentation
See the official API documentation for more information.
Requirements
PHP 5.6 or later
Installation
Install the LINE Messaging API SDK using Composer.
$ composer require linecorp/line-bot-sdk
Getting started
Create the bot client instance
The bot client instance is a handler of the Messaging API.
$httpClient = new \LINE\LINEBot\HTTPClient\CurlHTTPClient('');
$bot = new \LINE\LINEBot($httpClient, ['channelSecret' => '']);
The constructor of the bot client requires an instance of HTTPClient.
This library provides CurlHTTPClient by default.
Call API
You can call an API through