PHP code example of odiemiranda / orangelogic-api
1. Go to this page and download the library: Download odiemiranda/orangelogic-api 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/ */
odiemiranda / orangelogic-api example snippets
use \OdieMiranda\OrangeLogic\OrangeLogic;
$api = new OrangeLogic('domain.com', 'LoginName', 'password');
$api->search('Georgia: DR-TB patients find hope in new treatments');
print_r($api->getItems());
$api->search('Georgia: DR-TB patients find hope in new treatments', '', '', 2);
print_r($api->getItems());