The Apache Solr PHP extension is an extremely fast, light-weight, feature-rich library that allows PHP applications to communicate easily and efficiently with Apache Solr server instances using an object-oriented API.

It effectively simplifies the process of interacting with Apache Solr using PHP.

The extension has features such as built-in, serializable query string builder objects which effectively simplifies the manipulation of name-value pair request parameters across repeated requests.
The response from the Solr server is also automatically parsed into native php objects whose properties can be accessed as array keys or object properties without any additional configuration on the client-side.

Its advanced HTTP client reuses the same connection across multiple requests and provides built-in support for connecting to Solr servers secured behind HTTP Authentication or HTTP proxy servers. It is also able to connect to SSL-enabled containers.

Please consult the documentation for more details on features. Included in the source code are phpdoc stubs that enable autocomplete of Solr classes and methods in IDE during development in userland.

Please consider staring the package on github, and get a free release ;)

License: PHP License

Latest releases

Version Release Download
2.6.0 2022-11-09 solr-2.6.0.tgz
2.5.1 2020-09-09 solr-2.5.1.tgz
2.5.0 2019-07-04 solr-2.5.0.tgz
2.4.0 2016-03-30 solr-2.4.0.tgz
2.3.0 2015-12-01 solr-2.3.0.tgz
Show all releases


Version Message
2.6.0 - PHP 8.1 compatible
- PHP 8.2 compatible
2.5.1 - PHP 7.4 compatible
- PHP 7 windows support
- PHP 8.0.0beta3 compatible
- Bug #72740 Fixes NULL byte when using addQueryField() w/o boost
2.5.0 - Atomic Updates (partials)
- Simple Optimistic Concurrency
- Compatibility with PHP 7.1, 7.2, 7.3, latest 7.4
- Enable gzip encoding if server supports it
- Fix Real Time Get requests fails if it wasn't the first request
- Fix addQueryField return wrong query
- Fix Solr Extension build fail with curl 7.19+
2.4.0 - PHP 7 Support [Request #70696]
- Performance Optimizations
- Enabled SolrUtils::getSolrStats()
- Fix SolrException*::getInternalInfo
- Fix SolrQueryResponse::getRequestUrl returns wrong url with terms [Bug #71591]
- Fix SolrClient::deleteByIds Segfaults with invalid ids [Bug #71853]
- Fix SolrObject::offsetExists SegFault [Bug #71852]
- Fix float formatting with decimal comma [Bug #71568]
2.3.0 - Support indexing child/nested documents [Request #70739]
- Support nested documents parsing SolrObject [Request #70953]
- Support nested documents parsing SolrDocument [Request #70974]
- Added maxScore to SolrResponse [Request #68610]
- Fixed issues on big endean processors (Remi Collet)
- Enhancements on method parameter naming (reflections)
Show complete changelog