adhocore/plastic
Composer 安装命令:
composer require adhocore/plastic
包简介
README 文档
README
PHP elasticsearch wrapper designed to be minimal, intuitive and dependency free.
Installation
composer require adhocore/plastic
Usage
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']);
See ./test.php for more.
API
There is none. It works analagous to the RESTful API of elasticsearch.
Contributing
Please check the guide
LICENSE
© MIT | 2019, Jitendra Adhikari
统计信息
- 总下载量: 31
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-02-15