PHPackages                             pecl/solr - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. pecl/solr

ActivePhp-ext

pecl/solr
=========

Apache Solr extension

2.9.1(5mo ago)625541[1 issues](https://github.com/php/pecl-search_engine-solr/issues)[2 PRs](https://github.com/php/pecl-search_engine-solr/pulls)PHP-3.01CPHP &gt;= 7.4,&lt;=8.5CI passing

Since Nov 24Pushed 1mo ago16 watchersCompare

[ Source](https://github.com/php/pecl-search_engine-solr)[ Packagist](https://packagist.org/packages/pecl/solr)[ RSS](/packages/pecl-solr/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)DependenciesVersions (3)Used By (0)

PHP extension for communicating with Apache Solr Server 4.0+
============================================================

[](#php-extension-for-communicating-with-apache-solr-server-40)

[![Linux Build Status](https://github.com/php/pecl-search_engine-solr/actions/workflows/linux-tests.yml/badge.svg?branch=master)](https://github.com/php/pecl-search_engine-solr/actions/workflows/linux-tests.yml)[![Windows Build Status](https://github.com/php/pecl-search_engine-solr/actions/workflows/windows-tests.yml/badge.svg?branch=master)](https://github.com/php/pecl-search_engine-solr/actions/workflows/windows-tests.yml)[![Coverage Status](https://camo.githubusercontent.com/e861025fc2ef05fa983ee4d07e5cd948b1d0de66703ab4be7867cbe433758099/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f7068702f7065636c2d7365617263685f656e67696e652d736f6c722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/php/pecl-search_engine-solr?branch=master)

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.

This version of the extension requires Apache Solr Server at least version 4.0.

-

Please refer to  and README.\* for more information

Installation
------------

[](#installation)

This library requires curl and libxml2 development packages and php extensions

For Debian/Ubuntu/Mint

```
    sudo apt-get install php5-curl libcurl4-gnutls-dev libxml2 libxml2-dev
```

For RHEL/Fedora/CentOS/Scientific linux

```
    sudo yum install libxml2-devel curl-devel php-curl
```

Please make sure to install them before proceeding to the compilation process

```
    phpize
    ./configure
    make
    make test
    sudo make install
```

more details on README.INSTALLATION

Contributions
-------------

[](#contributions)

All forms of contributions are welcome! Whether contributing to tests, or the source.

Support &amp; Sponsorship
-------------------------

[](#support--sponsorship)

The PHP Solr Extension has been around since 2010 without any financial backing. Today, We'd like to transform it into an ODM (Object Document Mapper), a milestone we can't reach without your support, as there will be significant work up ahead. [Giving back will help us in this transformation](https://opencollective.com/php-solr-extension)!

Running Tests
-------------

[](#running-tests)

Types of tests

1. Tests that do not require a Solr Server (some of them use fixture files)
2. Requires a running server with cores present and populated with data.

There is a configuration file for the test suite, located at tests/test.config.inc It contains the fixture file definitions and other configurations for the Solr Server to be used for testing.

To run the type 2 tests, you'll need docker to run the test server using the following command:

```
docker-compose up -d
export SOLR_SERVER_CONFIGURED=1
php run-tests.php -q -d extension=$PWD/modules/solr.so --show-diff
# or make test
```

PHPQA Guide:

`make test`

How to Report Bugs
------------------

[](#how-to-report-bugs)

Please report bugs to

If you experience a crash due to a segmentation fault, please follow the instructions on the link below to get a gdb backtrace and then submit the trace in your bug report as well

Thank you for using PHP

###  Health Score

48

—

FairBetter than 94% of packages

Maintenance81

Actively maintained with recent releases

Popularity27

Limited adoption so far

Community28

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 74.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

166d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fb2fce4354f10be00f064bfb7590f007da1553d9584d7f030abfa67e158c94ac?d=identicon)[biggi-stefna](/maintainers/biggi-stefna)

---

Top Contributors

[![0mars](https://avatars.githubusercontent.com/u/1150811?v=4)](https://github.com/0mars "0mars (546 commits)")[![bix0r](https://avatars.githubusercontent.com/u/2131100?v=4)](https://github.com/bix0r "bix0r (65 commits)")[![remicollet](https://avatars.githubusercontent.com/u/270445?v=4)](https://github.com/remicollet "remicollet (55 commits)")[![omars44](https://avatars.githubusercontent.com/u/110405224?v=4)](https://github.com/omars44 "omars44 (19 commits)")[![petk](https://avatars.githubusercontent.com/u/1614009?v=4)](https://github.com/petk "petk (10 commits)")[![Jan-E](https://avatars.githubusercontent.com/u/1757825?v=4)](https://github.com/Jan-E "Jan-E (8 commits)")[![adoy](https://avatars.githubusercontent.com/u/80873?v=4)](https://github.com/adoy "adoy (5 commits)")[![BlueM](https://avatars.githubusercontent.com/u/1493457?v=4)](https://github.com/BlueM "BlueM (5 commits)")[![scara](https://avatars.githubusercontent.com/u/198356?v=4)](https://github.com/scara "scara (3 commits)")[![weltling](https://avatars.githubusercontent.com/u/22016?v=4)](https://github.com/weltling "weltling (2 commits)")[![alexgit2k](https://avatars.githubusercontent.com/u/7514221?v=4)](https://github.com/alexgit2k "alexgit2k (2 commits)")[![felipensp](https://avatars.githubusercontent.com/u/773947?v=4)](https://github.com/felipensp "felipensp (2 commits)")[![glensc](https://avatars.githubusercontent.com/u/199095?v=4)](https://github.com/glensc "glensc (2 commits)")[![lstrojny](https://avatars.githubusercontent.com/u/79707?v=4)](https://github.com/lstrojny "lstrojny (1 commits)")[![pierrejoye](https://avatars.githubusercontent.com/u/282408?v=4)](https://github.com/pierrejoye "pierrejoye (1 commits)")[![prateeksachan](https://avatars.githubusercontent.com/u/1313096?v=4)](https://github.com/prateeksachan "prateeksachan (1 commits)")[![KalleZ](https://avatars.githubusercontent.com/u/147050?v=4)](https://github.com/KalleZ "KalleZ (1 commits)")[![Ingimarsson](https://avatars.githubusercontent.com/u/3607456?v=4)](https://github.com/Ingimarsson "Ingimarsson (1 commits)")[![sunkan](https://avatars.githubusercontent.com/u/568492?v=4)](https://github.com/sunkan "sunkan (1 commits)")[![tony2001](https://avatars.githubusercontent.com/u/42386?v=4)](https://github.com/tony2001 "tony2001 (1 commits)")

### Embed Badge

![Health badge](/badges/pecl-solr/health.svg)

```
[![Health](https://phpackages.com/badges/pecl-solr/health.svg)](https://phpackages.com/packages/pecl-solr)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
