logo

English

Usage

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

$lableb = new LablebSDK();

You Can Also Pass Parameters Like This
use Lableb\LablebSDK;

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

Notice

it is preferred to keep your tokens out of your source code you can save them in an environment variables file then add it to .gitignore for example .

Warning !

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