amjad/lableb

Lableb cloud search laravel package

0.0.1 2020-10-11 12:33 UTC

This package is auto-updated.

Last update: 2025-05-12 00:06:31 UTC


README

Based on Lableb Php SDK https://solutions.lableb.com/documentation/tutorials/php-sdk/installation

Latest Version Latest Version Latest Version Latest Version

Require Package:

use composer require amjad/lableb to require the package

Publish Vendor config:

use php artisan vendor:publish --tag=lableb to publish configuration file

Set LABLEB_TOKEN:

create an set LABLEB_TOKEN in env file to your Lableb token

Usage:

    use Amjad\Lableb\LablebSDK;
    $sdk = new LablebSDK("project");

    $params = [
        'q' => 'الذكاء',
        'cat' => 'Technology',
        'filter' => [
          'meta_sa' => ['Technology']
        ],
        'limit' => 10
      ];
  
    $response = $sdk->search('collection', $params);