1. Go to this page and download the library: Download firelike/litres-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/ */
use Firelike\LitRes\Request\AbstractRequest;
use Firelike\LitRes\Request\Browser as BrowserRequest;
use Firelike\LitRes\Service\LitResService;
$request = new BrowserRequest();
$request->setSearch('King')
->setLang('en')
->setLimit(25);
$service = new LitResService();
$result = $service->browser($request);
$numberOfRecords = $result->toArray()['results'];
var_dump($numberOfRecords);
$records= $result->toArray()['fb2-book'];
var_dump($records);