A PHP library for indexing and searching documents within an Apache Solr installation.

v1.0.3 2014-04-24 14:32 UTC

This package is not auto-updated.

Last update: 2024-07-06 12:30:11 UTC


Apache Solr PHP client

Build Status

A PHP library for indexing and searching documents within an Apache Solr installation.

This client library was forked from Donovan Jiménez' Google Code project:
Before that, it was hosted in Solr's issue tracker:

What is Apache Solr?

Solr is an open source enterprise search server based on the Lucene Java search library, with XML/HTTP and JSON APIs, hit highlighting, faceted search, caching, replication, a web administration interface and many more features. It runs in a Java servlet container such as Tomcat. For more information about Solr, please see the Solr Web Page. The project's Wiki is the de facto starting point for information on how to install and configure Solr for your individual needs.


  • Quering, deleting, optimizing.
  • Support for both Solr 3 and Solr 4 through compatibility layers.
  • Support for soft commit with Solr 4.


Composer (PHP 5 >= 5.3.0)

Just require reprovinci/solr-php-client:

  "require": {
    "reprovinci/solr-php-client": "1.0.x"


The code is automatically tested by Travis after each push. Travis currently reports the following build status: Build Status.

If you want to test the code yourself, follow the following instructions:

Composer (PHP 5 >= 5.3.0)

Just install dev dependencies and run PHPUnit:

composer install --dev
bin/phpunit tests


  • Thanks to @GZyl for fixing <add> compatibility between Solr versions. #7

Further Information

Please see Frequently Asked Questions

Or, if you have usage questions, try posting to the USER DISCUSSION GROUP.


This PHP library is not part of the Apache Solr project, nor is it maintained by the Apache Software Foundation. All linked Apache Solr documentation or logos remain the sole property of the Apache Solr project, its authors, and the Apache Software Foundation.