logo

English

Usage

To use the sdk, first of all require the composer autoload file in your php code:
require_once 'vendor/autoload.php';

Then you can initialize the sdk as follows:
use Lableb\LablebSDK;

$lableb = new LablebSDK(
  "project name",
  "search token",
  "indexing token"
);

Warning !

All LablebSDK methods throws LablebException exception in case of an exception happens Use the methods with try-catch