adhocore/plastic

0.1.0 2019-02-15 12:33 UTC

This package is auto-updated.

Last update: 2024-09-21 18:09:38 UTC


README

PHP elasticsearch 封装器,旨在最小化、直观且无依赖。

Latest Version Travis Build Scrutinizer CI Codecov branch StyleCI Software License

安装

composer require adhocore/plastic

使用方法

use Ahc\Plastic\Client;

# Instantiate:
$client = new Ahc\Plastic\Client(null, true);

# Usage convention:
$client->{$httpMethod}->$segment1->$segment2->$method($data, $query);

# For numeric segment or method, prepend with `_`!
# (this is because PHP doesnt allow numeric method or props without some hack)

# Example:
$client->post->articles->article->_1(['json_key' => 'value'], ['query' => 'param']);

更多信息请参阅 ./test.php

API

没有。它的工作方式类似于elasticsearch的RESTful API。

贡献

请查看指南

许可协议

© MIT | 2019, Jitendra Adhikari