What do you think about using official API for ElasticSearch (https://github.com/elastic/elasticsearch-php)?