leadbi / leadbi-php-sdk
LeadBI SDK
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
pkg:composer/leadbi/leadbi-php-sdk
Requires
- php: >=5.3.0
- ext-curl: *
- ext-json: *
This package is not auto-updated.
Last update: 2025-12-26 22:16:01 UTC
README
Install
Add the LeadBI PHP SDK as a dependency to your composer.json file:
{
"require": {
"leadbi/leadbi-php-sdk": "dev-master"
}
}
Consider replacing dev-master with the latest version in order to pin your dependencies.
Install the Composer dependency:
php composer.phar install
Usage
This example demonstrates how you can use the SDK to access the api.
<?php
require 'vendor/autoload.php';
require 'config.php';
use LeadBI\LeadBIConfig;
use LeadBI\LeadBIAPI;
$config = new LeadBIConfig(ACCESS_ID, SECRET_KEY, ENDPOINT, SECURE);
$config->debug = DEBUG;
$api = new LeadBIAPI($config);
$response = $api->get("/api/v1/websites");
// Show the results
echo '<pre>';
print_r($response);
echo '</pre>';
Examples
More examples can be found in ./examples directory.