Download the PHP package limingxinleo/swoft-elasticsearch without Composer
On this page you can find all versions of the php package limingxinleo/swoft-elasticsearch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package swoft-elasticsearch
swoft-elasticsearch
安装
composer require limingxinleo/swoft-elasticsearch
使用
使用方法与官方ES客户端一致
<?php
use Elasticsearch\ClientBuilder;
use Swoftx\Elasticsearch\CoroutineHandler;
$handler = new CoroutineHandler([
'timeout' => 2
]);
$client = ClientBuilder::create()
->setHosts(['127.0.0.1:9200'])
->setHandler($handler)
->build();
go(function() use ($client){
print_r($client->info());
});
All versions of swoft-elasticsearch with dependencies
PHP Build Version
Package Version
The package limingxinleo/swoft-elasticsearch contains the following files
Loading the files please wait ....