smolevich/reindexer-client

PHP client for using database reindexer

Maintainers

Package info

github.com/Smolevich/reindexer-client

pkg:composer/smolevich/reindexer-client

Fund package maintenance!

smolevich

Statistics

Installs: 18 738

Dependents: 2

Suggesters: 0

Stars: 10

Open Issues: 7


README

CI codecov

PHP client for work with reindexer

Installation

composer require smolevich/reindexer-client

Configuration file for library

{
  "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

Example of using

    $apiClient = new Api($this->config['endpoint'], $this->config['client_config']);
    $dbService = new Database($apiClient);
    $response = $dbService->getList();