vohinc / botanalytics-php
Botanalytics for PHP application
Installs: 4 125
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >= 5.6
- guzzlehttp/guzzle: ^6.0
Requires (Dev)
- mockery/mockery: ^0.9.7
- nesbot/carbon: ^1.22
- phpunit/phpunit: ^5.7
This package is auto-updated.
Last update: 2024-11-26 02:58:39 UTC
README
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.