PHP code example of amjad / lableb
1. Go to this page and download the library: Download amjad/lableb library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
amjad / lableb example snippets
artisan vendor:publish --tag=lableb
use Amjad\Lableb\LablebSDK;
$sdk = new LablebSDK("project");
$params = [
'q' => 'الذكاء',
'cat' => 'Technology',
'filter' => [
'meta_sa' => ['Technology']
],
'limit' => 10
];
$response = $sdk->search('collection', $params);