定制 elastic/elasticsearch-serverless 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

elastic/elasticsearch-serverless

最新稳定版本:v0.2.0

Composer 安装命令:

composer require elastic/elasticsearch-serverless

包简介

PHP Client for Elasticsearch serverless

README 文档

README

main

Warning

Starting with the release of the Elastic Stack 9.0.0, this client will be discontinued. Instead, you can use the latest version of the Elasticsearch PHP Client to build your Elasticsearch Serverless PHP applications.

This is the official Elastic client for the Elasticsearch Cloud Serverless.

If you're looking to develop your PHP application with the Elasticsearch Stack, you should look at the Elasticsearch Client instead.

Installation

You can install the library using composer with the following command:

composer require elastic/elasticsearch-serverless

Instantiate the client

When you have installed elasticsearch-php you can start using it with the Client class. You can use the ClientBuilder to create this object:

require 'vendor/autoload.php';

use Elastic\Elasticsearch\Serverless\ClientBuilder;

$client = ClientBuilder::create()
  ->setEndpoint('<elasticsearch-endpoint>')
  ->setApiKey('<api-key>')
  ->build();

# $client is an object of Elastic\Elasticsearch\Serverless\Client class

Usage

You can read to the official documentation page for a getting started guide.

Development

See CONTRIBUTING.

License 📗

MIT © Elastic

统计信息

  • 总下载量: 2.06k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 187
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-10-12