PHP client for work with reindexer
composer require smolevich/reindexer-client
{
"endpoint": "http://localhost:9088",
"client_config": {
"http_errors": 0
}
}
- endpoint - url of reindexer instance
- client_config - guzzle configuration settings for api client, now it is options for guzzle client, in future versions fields can be renamed
$apiClient = new Api($this->config['endpoint'], $this->config['client_config']);
$dbService = new Database($apiClient);
$response = $dbService->getList();