PHPackages                             ejunker/solarium - 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. [Search &amp; Filtering](/categories/search)
4. /
5. ejunker/solarium

ActiveLibrary[Search &amp; Filtering](/categories/search)

ejunker/solarium
================

PHP Solr client

5.1.6(6y ago)05BSD-3-ClausePHPPHP ^7.1.3

Since Jan 4Pushed 6y agoCompare

[ Source](https://github.com/ejunker/solarium)[ Packagist](https://packagist.org/packages/ejunker/solarium)[ Docs](http://www.solarium-project.org)[ RSS](/packages/ejunker-solarium/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependencies (7)Versions (58)Used By (0)

Solarium PHP Solr client library
================================

[](#solarium-php-solr-client-library)

What is Solarium?
-----------------

[](#what-is-solarium)

Solarium is a PHP Solr client library that accurately model Solr concepts. Where many other Solr libraries only handle the communication with Solr, Solarium also relieves you of handling all the complex Solr query parameters using a well documented API.

Please see the [docs](http://solarium.readthedocs.io/en/stable/) for a more detailed description.

Requirements
------------

[](#requirements)

Solarium 5.x only supports PHP 7.1 and up.

It's highly recommended to have Curl enabled in your PHP environment. However if you don't have Curl available you can switch from using Curl (the default) to another client adapter. The other adapters don't support all the features of the Curl adapter.

Getting started
---------------

[](#getting-started)

The preferred way to install Solarium is by using Composer. Solarium is available on [Packagist](https://packagist.org/packages/solarium/solarium).

Example:

```
composer require solarium/solarium

```

### Pitfall when upgrading from earlier versions to 5.x

[](#pitfall-when-upgrading-from-earlier-versions-to-5x)

In the past, the V1 API endpoint ***solr*** was not added automatically, so most users set it as path on the endpoint. This bug was discovered with the addition of V2 API support. In almost every setup, the path has to be set to `/`instead of `/solr` with this release!

For the same reason it is a must to explicit configure the *core* or *collection*.

So an old setting like

```
'path' => '/solr/xxxx/'

```

has to be changed to something like

```
'path' => '/',
'collection' => 'xxxx',

```

Run the examples
----------------

[](#run-the-examples)

To run the examples read through the *Example code* section of

More information
----------------

[](#more-information)

- Docs
- Issue tracker

- Contributors

- License
    See the COPYING file or view online:

Continuous Integration status
-----------------------------

[](#continuous-integration-status)

- [![Develop build status](https://camo.githubusercontent.com/a0755b6e5a30c8315cee651b8b33887ede03bd9f4f367df21d965406e7c424a1/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f736f6c617269756d7068702f736f6c617269756d2e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/solariumphp/solarium?branch=master) [![Coverage Status](https://camo.githubusercontent.com/a26bbd44517b3be057836816d127e2375ff4b0ab944db1a8574eb04b2431fdf9/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f736f6c617269756d7068702f736f6c617269756d2f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/solariumphp/solarium?branch=master)
- [![SensioLabsInsight](https://camo.githubusercontent.com/25f8cdc233e482e2b8db5e7daea298c066c8fb15a6ee290f2a640d5878affcf1/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f32393265323966372d313061392d343638352d623961632d3337393235656265663961652f736d616c6c2e706e67)](https://insight.sensiolabs.com/projects/292e29f7-10a9-4685-b9ac-37925ebef9ae)
- [![Total Downloads](https://camo.githubusercontent.com/a71c6eac474e60234e38da36df03907baa6d346b9720391acb2b92f9cfc9c11b/68747470733a2f2f706f7365722e707567782e6f72672f736f6c617269756d2f736f6c617269756d2f646f776e6c6f6164732e737667)](https://packagist.org/packages/solarium/solarium)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 74.1% 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 ~55 days

Recently: every ~38 days

Total

55

Last Release

2265d ago

Major Versions

2.4.0 → 3.0.0-RC12012-09-26

2.4.1 → 3.1.0-RC12013-02-11

v3.9.0-alpha → 4.0.0-alpha.12018-01-26

3.x-dev → 4.2.0-beta.12018-11-01

4.3.0-alpha.2 → 5.0.0-alpha.12019-04-08

PHP version history (6 changes)2.3.0PHP &gt;=5.2.0

3.0.0-RC1PHP &gt;=5.3.2

v3.9.0-alphaPHP &gt;=5.3.9

4.0.0-alpha.1PHP ^7.0

4.3.0-alpha1PHP ^7.1

5.1.1PHP ^7.1.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/94f5faf8e6d32349cbaf2ebf6cd84b0eb2565f44f3429950f0b06d626ef315bd?d=identicon)[ejunker](/maintainers/ejunker)

---

Top Contributors

[![basdenooijer](https://avatars.githubusercontent.com/u/580644?v=4)](https://github.com/basdenooijer "basdenooijer (723 commits)")[![Gasol](https://avatars.githubusercontent.com/u/108053?v=4)](https://github.com/Gasol "Gasol (58 commits)")[![jsteggink](https://avatars.githubusercontent.com/u/978411?v=4)](https://github.com/jsteggink "jsteggink (42 commits)")[![localheinz](https://avatars.githubusercontent.com/u/605483?v=4)](https://github.com/localheinz "localheinz (17 commits)")[![thePanz](https://avatars.githubusercontent.com/u/226021?v=4)](https://github.com/thePanz "thePanz (15 commits)")[![thomascorthals](https://avatars.githubusercontent.com/u/12425704?v=4)](https://github.com/thomascorthals "thomascorthals (12 commits)")[![wickedOne](https://avatars.githubusercontent.com/u/343850?v=4)](https://github.com/wickedOne "wickedOne (11 commits)")[![chadicus](https://avatars.githubusercontent.com/u/1182337?v=4)](https://github.com/chadicus "chadicus (9 commits)")[![stefanooldeman](https://avatars.githubusercontent.com/u/415560?v=4)](https://github.com/stefanooldeman "stefanooldeman (9 commits)")[![marinpurgar](https://avatars.githubusercontent.com/u/1115765?v=4)](https://github.com/marinpurgar "marinpurgar (9 commits)")[![Hywan](https://avatars.githubusercontent.com/u/946104?v=4)](https://github.com/Hywan "Hywan (7 commits)")[![igorw](https://avatars.githubusercontent.com/u/88061?v=4)](https://github.com/igorw "igorw (5 commits)")[![shieldo](https://avatars.githubusercontent.com/u/97280?v=4)](https://github.com/shieldo "shieldo (5 commits)")[![timohund](https://avatars.githubusercontent.com/u/964675?v=4)](https://github.com/timohund "timohund (5 commits)")[![acasademont](https://avatars.githubusercontent.com/u/825021?v=4)](https://github.com/acasademont "acasademont (4 commits)")[![gsdevme](https://avatars.githubusercontent.com/u/319498?v=4)](https://github.com/gsdevme "gsdevme (4 commits)")[![jaytaph](https://avatars.githubusercontent.com/u/241458?v=4)](https://github.com/jaytaph "jaytaph (4 commits)")[![onigoetz](https://avatars.githubusercontent.com/u/309594?v=4)](https://github.com/onigoetz "onigoetz (4 commits)")[![smoench](https://avatars.githubusercontent.com/u/183530?v=4)](https://github.com/smoench "smoench (4 commits)")[![vlastv](https://avatars.githubusercontent.com/u/535506?v=4)](https://github.com/vlastv "vlastv (4 commits)")

---

Tags

phpsearchsolr

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/ejunker-solarium/health.svg)

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

###  Alternatives

[solarium/solarium

PHP Solr client

93532.7M98](/packages/solarium-solarium)[apache-solr-for-typo3/solr

Apache Solr for TYPO3 - Apache Solr for TYPO3 is the enterprise search server you were looking for with special features such as Faceted Search or Synonym Support and incredibly fast response times of results within milliseconds.

1473.0M32](/packages/apache-solr-for-typo3-solr)[apicart/fql

Filter Query Language

1110.6k](/packages/apicart-fql)

PHPackages © 2026

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