PHP elasticsearch wrapper designed to be minimal, intuitive and dependency free.
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']);
See ./test.php for more.
There is none. It works analagous to the RESTful API of elasticsearch.
Please check the guide
© MIT | 2019, Jitendra Adhikari