PHP code example of nanato12 / phine

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

    

nanato12 / phine example snippets


$client = new Client($channelAccessSecret, $channelAccessToken);

$fileContent = file_get_contents("flex.json");
$flexContentArray = json_decode($fileContent, true);
$flexMessage = new RawFlexMessageBuilder($flexContentArray);

$textMessage = new TextMessageBuilder(
    text: 'text',
    emojis: [],
    quoteToken: 'quoteToken'
);

$client->setEvent($event);

$client->reply($messages, $sender, $quickReply);

$client->getProfileFromUserID($userID);