Skip to content

vohinc/botanalytics-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Botanalytics-PHP

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.

About

Botanalytics for PHP application

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages