PHP code example of bogiesoft / laravel-line-sdk

1. Go to this page and download the library: Download bogiesoft/laravel-line-sdk library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

bogiesoft / laravel-line-sdk example snippets


use Bogiesoft\Line\Facades\Bot;

Bot::replyText();

    'aliases' => [
        'LINE' => Bogiesoft\Line\Facades\Bot::class,
    ],

use LINE;

LINE::replyText();

/**
 * Determine if events and listeners should be automatically discovered.
 *
 * @return bool
 */
public function shouldDiscoverEvents()
{
    return true;
}

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

php artisan vendor:publish --tag=line-listeners-message