amjad/lableb

0.0.1 2020-10-11 12:33 UTC

This package is auto-updated.

Last update: 2024-09-11 22:38:22 UTC


README

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

Latest Version Latest Version Latest Version Latest Version

所需包

使用 composer require amjad/lableb 安装包

发布供应商配置

使用 php artisan vendor:publish --tag=lableb 发布配置文件

设置LABLEB_TOKEN

在env文件中创建并设置 LABLEB_TOKEN 为您的Lableb令牌

用法

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

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