amjad / lableb
Lableb cloud search laravel package
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/amjad/lableb
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);