amjad / lableb
Lableb cloud search laravel package
0.0.1
2020-10-11 12:33 UTC
Requires
- php: >=7.2.0
- guzzlehttp/guzzle: ^7.1
README
Based on Lableb Php SDK https://solutions.lableb.com/documentation/tutorials/php-sdk/installation
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);