smolevich / reindexer-client
用于使用数据库reindexer的PHP客户端
2.0.4
2024-02-18 07:58 UTC
Requires
- php: >=8.0
- ext-json: *
- guzzlehttp/guzzle: ^7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- php-coveralls/php-coveralls: ^2.1
- phpunit/phpunit: ^9.0
- dev-master
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.x-dev
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-dependabot/github_actions/dot-github/workflows/actions/download-artifact-4.1.7
- dev-35-add-replication
- dev-33-changes
- dev-31-override-headers
- dev-29-issue-add-put-method
- dev-24-add-grpc-support
- dev-26-fix-failed-tests-in-ci-on-branch-master
- dev-add-license-1
- dev-22-guzzle-upgrade
- dev-add-coverage-for-php-ci
- dev-13-update-ci-and-dependencies
- dev-update-coveralls
- dev-Add-test-case
- dev-replace-json-path-on-new-name
- dev-update-readme
This package is auto-updated.
Last update: 2024-09-03 21:59:45 UTC
README
用于与reindexer交互的PHP客户端
安装
composer require smolevich/reindexer-client
库的配置文件
{
"endpoint": "https://:9088",
"client_config": {
"http_errors": 0
}
}
- endpoint - reindexer实例的url
- client_config - api客户端的guzzle配置设置,目前它是guzzle客户端的选项,在未来版本中字段可以被重命名
使用示例
$apiClient = new Api($this->config['endpoint'], $this->config['client_config']); $dbService = new Database($apiClient); $response = $dbService->getList();