PHP code example of vohinc / botanalytics-php

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

    

vohinc / botanalytics-php example snippets



use Vohinc\BotanalyticsPhp\Client;
use Vohinc\BotanalyticsPhp\Drivers\Facebook;

$client = new Client('botanalytics-token');
$client->setDriver(new Facebook());
$client->request([
   'recipient' => 'Sender ID', // (should be null for the incoming messages)
   'message' => [], // Facebook incoming message structure
]);
shell
composer