Run Composer in your project:
composer require vanchaiy/line-sdk-php
Then you could use SDK class after Composer is loaded on your PHP project:
require __DIR__ . '/vendor/autoload.php';
$lineNotify = new LineSDK\Bot();
$lineNotify = new LineSDK\Notify();OR
use LineSDK\Bot();
use LineSDK\Notify();LINE_BOT_CHANNEL_ID=
LINE_BOT_CHANNEL_SECRET=
LINE_BOT_CHANNEL_TOKEN=
LINE_NOTIFY_TOKEN=
'providers' => [
LineSDK\Laravel\LineServiceProvider::class,
], 'aliases' => [
'LineBot' => LineSDK\Laravel\Facades\LineBot::class,
'LineNotify' => LineSDK\Laravel\Facades\LineNotify::class,
],Run the following Artisan command in your terminal:
php artisan vendor:publish --provider="LineSDK\Laravel\LineServiceProvider"
use LineBot;
LineBot::push('<userToken>')->text('LineBot Test');use LineNotify;
LineNotify::sent()->text('LineNotify Test');