PHP code example of aznc / line_bus_type76

1. Go to this page and download the library: Download aznc/line_bus_type76 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/ */

    

aznc / line_bus_type76 example snippets


$bus = LineBusFactory::CreateBus($token, $secret);
$bus->on('message.text', function ($event, $bot) {
    $bot->replyText($event->getReplyToken(), $event->getText());
});

$bus->run();