# PHP API for elastic search

**URL:** https://discuss.elastic.co/t/php-api-for-elastic-search/21196
**Category:** Elasticsearch
**Created:** [December 10, 2014, 6:10pm UTC](https://discuss.elastic.co/t/php-api-for-elastic-search/21196 "2014-12-10T18:10:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Austin\_Harmon](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@Austin\_Harmon](https://discuss.elastic.co/u/Austin_Harmon)
#### Post date: [December 10, 2014, 6:10pm UTC](https://discuss.elastic.co/t/php-api-for-elastic-search/21196/1 "2014-12-10T18:10:56Z")

</div>

Hello,

I have a question about the PHP client for Elasticsearch. I have installed  
a local instance of elastic search v1.4.1 and when I tried to install the  
PHP API I got an error that said that it was only compatible with versions  
1.0 through 1.3. I wanted to use the PHP API for elastic search but if it  
isn't compatible with elastic search 1.4 I was going to use the groovy API  
client because it is compatible. If anyone else has run into this issue  
please let me know what you did to fix the issue. I thought maybe I needed  
to update the API but i'm not sure if that is the right solution.

Thanks,  
Austin Harmon

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/ead4d68d-f46b-463f-beff-7b69af4da7f1%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/ead4d68d-f46b-463f-beff-7b69af4da7f1%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![N\_Bijalwan](https://avatars.discourse-cdn.com/v4/letter/n/8c91f0/32.png) [@N\_Bijalwan](https://discuss.elastic.co/u/N_Bijalwan)
#### Post date: [December 11, 2014, 3:25am UTC](https://discuss.elastic.co/t/php-api-for-elastic-search/21196/2 "2014-12-11T03:25:43Z")

</div>

Hi Austin

I am using PHP client with ES1.2.1 and haven't used it with 1.4.1.

Though i'll prefer to use php curl and use rest calls to ES then using ES  
php client.

Something like attached test.php.

regards  
naveen

On Wednesday, 10 December 2014 23:40:56 UTC+5:30, Austin Harmon wrote:

> Hello,
> 
> I have a question about the PHP client for Elasticsearch. I have installed  
> a local instance of Elasticsearch v1.4.1 and when I tried to install the  
> PHP API I got an error that said that it was only compatible with versions  
> 1.0 through 1.3. I wanted to use the PHP API for Elasticsearch but if it  
> isn't compatible with Elasticsearch 1.4 I was going to use the groovy API  
> client because it is compatible. If anyone else has run into this issue  
> please let me know what you did to fix the issue. I thought maybe I needed  
> to update the API but i'm not sure if that is the right solution.
> 
> Thanks,  
> Austin Harmon

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/bfc875e0-264d-4e55-bc08-b5de22ea84cf%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bfc875e0-264d-4e55-bc08-b5de22ea84cf%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![N\_Bijalwan](https://avatars.discourse-cdn.com/v4/letter/n/8c91f0/32.png) [@N\_Bijalwan](https://discuss.elastic.co/u/N_Bijalwan)
#### Post date: [December 11, 2014, 4:00am UTC](https://discuss.elastic.co/t/php-api-for-elastic-search/21196/3 "2014-12-11T04:00:23Z")

</div>

Just to add I think you can use the ES PHP API with 1.4.1 see attached  
estest.php

If you are using  
this [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/client/php-api/current/_configuration.html)

because rest call is independent of version.

On Wednesday, 10 December 2014 23:40:56 UTC+5:30, Austin Harmon wrote:

> Hello,
> 
> I have a question about the PHP client for Elasticsearch. I have installed  
> a local instance of Elasticsearch v1.4.1 and when I tried to install the  
> PHP API I got an error that said that it was only compatible with versions  
> 1.0 through 1.3. I wanted to use the PHP API for Elasticsearch but if it  
> isn't compatible with Elasticsearch 1.4 I was going to use the groovy API  
> client because it is compatible. If anyone else has run into this issue  
> please let me know what you did to fix the issue. I thought maybe I needed  
> to update the API but i'm not sure if that is the right solution.
> 
> Thanks,  
> Austin Harmon

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/bfaacc02-c46a-4ae5-b0b8-328340d8c88a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/bfaacc02-c46a-4ae5-b0b8-328340d8c88a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:44am UTC](https://discuss.elastic.co/t/php-api-for-elastic-search/21196/4 "2017-07-06T00:44:18Z")

</div>


