PHPackages                             emran/php-solr-helper - 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. emran/php-solr-helper

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

emran/php-solr-helper
=====================

PHP Solr Helper

11132PHP

Since Jun 7Pushed 12y ago2 watchersCompare

[ Source](https://github.com/phpfour/php-solr-helper)[ Packagist](https://packagist.org/packages/emran/php-solr-helper)[ RSS](/packages/emran-php-solr-helper/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Solr Helper
===============

[](#php-solr-helper)

This is a small helper to ease querying Apache Solr using the solr-php-client library.

Example 1:
----------

[](#example-1)

Searches the solr for records matching the two fields make and model.

```
$solrHelper = new \Emran\SolrHelper(new \Apache_Solr_Service('localhost', 8080, '/solr/'));
$result = $solrHelper->addSingleValueCriteria('make', 'BMW')
                     ->addSingleValueCriteria('model', 'X5')
                     ->search();

```

Example 2:
----------

[](#example-2)

Searches the solr for records matching the two fields make, model and a price range between 10000 and 20000. Also limits the fields to be returned to acode and price.

```
$solrHelper = new \Emran\SolrHelper(new \Apache_Solr_Service('localhost', 8080, '/solr/'));
$result = $solrHelper->addSingleValueCriteria('make', 'BMW')
                     ->addMultiValueCriteria('model', array('X5', 'X3'))
                     ->addRangeCriteria('price', array(20000, 50000))
                     ->start(0)
                     ->limit(10)
                     ->order('price desc')
                     ->search();

```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/171715?v=4)[Mohammad Emran](/maintainers/phpfour)[@phpfour](https://github.com/phpfour)

---

Top Contributors

[![phpfour](https://avatars.githubusercontent.com/u/171715?v=4)](https://github.com/phpfour "phpfour (13 commits)")

### Embed Badge

![Health badge](/badges/emran-php-solr-helper/health.svg)

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

###  Alternatives

[ruflin/elastica

Elasticsearch Client

2.3k50.4M203](/packages/ruflin-elastica)[opensearch-project/opensearch-php

PHP Client for OpenSearch

15024.3M65](/packages/opensearch-project-opensearch-php)[mailerlite/laravel-elasticsearch

An easy way to use the official PHP ElasticSearch client in your Laravel applications.

934529.3k2](/packages/mailerlite-laravel-elasticsearch)[massive/search-bundle

Massive Search Bundle

721.4M13](/packages/massive-search-bundle)[shyim/opensearch-php-dsl

OpenSearch/Elasticsearch DSL library

175.9M9](/packages/shyim-opensearch-php-dsl)[outl1ne/nova-multiselect-filter

Multiselect filter for Laravel Nova.

45802.7k3](/packages/outl1ne-nova-multiselect-filter)

PHPackages © 2026

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