# Sharing PHP Library for Elasticsearch

**URL:** <https://discuss.elastic.co/t/sharing-php-library-for-elasticsearch/6196>\
**Category:** Elasticsearch\
**Created:** [December 20, 2011, 3:43pm UTC](https://discuss.elastic.co/t/sharing-php-library-for-elasticsearch/6196 "2011-12-20T15:43:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Niranjan](https://avatars.discourse-cdn.com/v4/letter/n/e99b99/32.png) [@Niranjan](https://discuss.elastic.co/u/Niranjan)\
**Post date:** [December 20, 2011, 3:43pm UTC](https://discuss.elastic.co/t/sharing-php-library-for-elasticsearch/6196/1 "2011-12-20T15:43:36Z")

</div>

Hi all,

> **[niranjan-uma-shankar/Elasticsearch-PHP-class](https://github.com/niranjan-uma-shankar/Elasticsearch-PHP-class)**
>
> Elasticsearch-PHP-class - This PHP class is to create and insert documents to an elasticsearch index, search based on a query and highlight matched results.

I would like to share with you a PHP class library for Elasticsearch.  
I have added a few functionalities like query highlighting etc. and  
also written a detailed note on setting stemming and highlighting,  
which would be useful for beginners.  
I request you to share your feedback for improvements. I would like to  
add more details in the README and add few more functionalities in the  
class, based on feedbacks, to make it useful for those getting started  
with elasticsearch.  
Apologies if I have made mistakes, please let me know if any and I  
will correct them.

Thanks,  
Niranjan

---

<div class="post-metadata">

**Author:** ![Karussell1](https://avatars.discourse-cdn.com/v4/letter/k/50afbb/32.png) [@Karussell1](https://discuss.elastic.co/u/Karussell1)\
**Post date:** [December 20, 2011, 7:38pm UTC](https://discuss.elastic.co/t/sharing-php-library-for-elasticsearch/6196/2 "2011-12-20T19:38:34Z")

</div>

Why starting yet another client? I'm not a php guy but what is missing  
in those clients for you?

> **[GitHub - ruflin/Elastica: Elastica is a PHP client for elasticsearch](https://github.com/ruflin/Elastica)**
>
> Elastica is a PHP client for elasticsearch. Contribute to ruflin/Elastica development by creating an account on GitHub.

> **[GitHub - nervetattoo/elasticsearch: Simple PHP client for ElasticSearch](https://github.com/nervetattoo/elasticsearch)**
>
> Simple PHP client for ElasticSearch. Contribute to nervetattoo/elasticsearch development by creating an account on GitHub.

Peter.

On 20 Dez., 16:43, Niranjan [niranja...@gmail.com](mailto:niranja...@gmail.com) wrote:

> Hi all,
> 
> [GitHub - niranjan-uma-shankar/Elasticsearch-PHP-class: This PHP class is to create and insert documents to an elasticsearch index, search based on a query and highlight matched results.](https://github.com/niranjan-uma-shankar/Elasticsearch-PHP-class)
> 
> I would like to share with you a PHP class library for Elasticsearch.  
> I have added a few functionalities like query highlighting etc. and  
> also written a detailed note on setting stemming and highlighting,  
> which would be useful for beginners.  
> I request you to share your feedback for improvements. I would like to  
> add more details in the README and add few more functionalities in the  
> class, based on feedbacks, to make it useful for those getting started  
> with elasticsearch.  
> Apologies if I have made mistakes, please let me know if any and I  
> will correct them.
> 
> Thanks,  
> Niranjan

---

<div class="post-metadata">

**Author:** ![nurikabe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nurikabe/32/2192_2.png) [@nurikabe](https://discuss.elastic.co/u/nurikabe)\
**Post date:** [December 23, 2011, 3:37pm UTC](https://discuss.elastic.co/t/sharing-php-library-for-elasticsearch/6196/3 "2011-12-23T15:37:27Z")

</div>

Good point by Karussell. I highly recommend the Elastica client.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:44am UTC](https://discuss.elastic.co/t/sharing-php-library-for-elasticsearch/6196/4 "2017-07-06T03:44:26Z")

</div>


