ElasticSearch PHP client 2.0, thoughts and changes

I discovered the Elasticsearch search engine very early in its life and ended up creating the first elasticsearch php client partially for fun and partially because I needed one. After the initial version and a little bit of updating its mostly remained untouched (apart from a few pull requests) due to the fact that I’ve not done anything with ES for a good while. But I’m now in the process of rewriting it to make a 2.0 version that I intend to support more actively. The project has 70 watchers and 14 forks at GitHub, showing that it deserves some of my attention!

The plans I have for a 2.0 release as of now is at least, but not limited to:

  • Support, and prefer, composer based install
  • PHP 5.3 and upwards only. Namespaced and following PSR-0 (this is required for composer anyway)
  • Make it even simpler to get started = more defaulting. To get up and running all you should need to do is Client::connection()->index($array) for naively getting started.
  • Make it easy to use analyzers and to create mappings
  • Stable base API
  • Possibly: Specific integration with Lithium models (PHP 5.4 only maybe with traits)

I’m writing this in case anyone want to voice their thoughts on any of the subjects, or about your current usage of the client (if you do). Feel free to use the github issues, twitter og comments here.

About Raymond Julin

Lead developer at Keyteq Labs, a product business in Bergen, Norway with a reputation for modern user friendly solutions.


  1. Fuji

    Hi – I love that you are looking to get back into elastic search client. Not to be rude but to reduce duplication and to drive a single client, would it be possible for you to join forces with Elastica and make that better? That way the client has multiple awesome contributors?

    • Raymond Julin

      I considered this but figured I like people having a choice of options, besides, although Ruflin was initially based on my client it has diverged quite a bit and I don’t necessarily agree on all of the design choices.

      I think its better if we can nab ideas off each other and giving PHP users two decent choices :)

  2. Do you plan to continue this now that they’ve released that official PHP client? Its almost 1:1 mapping to the API is nice.

  3. Hello,

    I have a question about how composer works with elastic search. I’m trying to install the composer.phar but it is telling me that it couldn’t resolve to an installable set of packages. I am running elastic search 1.3.2 on a mac mini with ubuntu server. Let me if you have ever encountered something like this.

Leave a Reply