Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

botamp/botamp-php

Repository files navigation

Botamp PHP SDK

Build Status Coverage Status Code Climate Latest Stable Version Total Downloads License

Botamp is an autonomous AI-enabled chat assistant which interacts seamlessly with your customers, keeps them engaged and makes them buy more from you, while you can focus on serving them.

You can sign up for a Botamp account at https://botamp.com.

Requirements

PHP 5.6 and later (previous PHP versions may work but untested), HHVM

Composer

You can install the SDK via Composer. Run the following command:

composer require botamp/botamp-php

To be able to use it, require Composer autoload:

require_once('vendor/autoload.php');

Getting Started

Here goes a simple usage:

$botamp = new Botamp\Client(YOUR_API_KEY);
$entities = $botamp->entities->all();

foreach($entities as $entity)
{
    echo $entity['name'];
}

Documentation

Please see https://app.botamp.com/docs/api for up-to-date documentation.

Development

Install dependencies:

composer install

Tests

Install dependencies as mentioned above (which will resolve PHPUnit), then you can run the test suite:

./vendor/bin/phpunit

Or to run an individual test file:

./vendor/bin/phpunit tests/ClientTest.php