solarium

PHP Solr client library

Github星跟蹤圖

Solarium PHP Solr client library

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 for a more detailed description.

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

The preferred way to install Solarium is by using Composer. Solarium is available on
Packagist.

Example:

composer require solarium/solarium

Pitfall when upgrading from earlier versions to 5.x

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

To run the examples read through the Example code section of
https://solarium.readthedocs.io/en/stable/getting-started/

More information

Continuous Integration status

  • Develop build status Coverage Status
  • SensioLabsInsight
  • Total Downloads

主要指標

概覽
名稱與所有者solariumphp/solarium
主編程語言PHP
編程語言PHP (語言數: 2)
平台
許可證Other
所有者活动
創建於2011-02-02 16:36:40
推送於2025-05-05 09:30:41
最后一次提交2025-05-05 11:30:40
發布數98
最新版本名稱6.3.7 (發布於 )
第一版名稱1.0.0-RC1 (發布於 2011-03-08 13:15:59)
用户参与
星數0.9k
關注者數51
派生數300
提交數1.7k
已啟用問題?
問題數445
打開的問題數10
拉請求數542
打開的拉請求數3
關閉的拉請求數158
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?