invit / livechat-api-client-php
The LiveChat API SDK provides methods for all API functions.
Installs: 21
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 26
pkg:composer/invit/livechat-api-client-php
Requires (Dev)
- php: >=5.4.0
- phpunit/phpunit: ~4.6
This package is auto-updated.
Last update: 2019-10-01 15:45:21 UTC
README
PHP library with ready-to-use LiveChat API implementation.
Quick example
// When not using a PSR-0 compliant autoloader, only the API file needs to be
// included. If you are using a PSR-0 autoloader, it should be configured to
// load the LiveChat namespace from the lib/LiveChat folder or whichever
// directory you choose to move the LiveChat folder to.
require_once('lib/LiveChat/API.php');
try {
$LiveChatAPI = new \LiveChat\API(/* login name */, /* API key */);
var_dump($LiveChatAPI->agents->get());
}
catch (Exception $e) {
die($e->getCode().' '.$e->getMessage());
}