vohinc/botanalytics-php

Botanalytics for PHP application

v0.1.2 2017-01-31 14:25 UTC

This package is auto-updated.

Last update: 2024-04-26 01:47:03 UTC


README

Build Status StyleCI

Botanalytics is a bot analytics service, improves Human-to-Bot interaction.

The package is made you easy to integrate the service.

Install

Composer

To get the latest version

composer require vohinc/botanalytics-php

Usage

Facebook Messenger Driver

<?php
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
]);

License

This package is licensed under the MIT license.