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 13y 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 6d 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 25% 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

[netgen/query-translator

Query Translator is a search query translator with AST representation

2062.1M9](/packages/netgen-query-translator)[fran6co/phptrie

PHP Trie implementation

3418.9k](/packages/fran6co-phptrie)[imarc/google-site-search

A PHP Interface to the Google Custom Search API

3011.6k](/packages/imarc-google-site-search)[dialekt/dialekt

A boolean expression DSL.

173.8k](/packages/dialekt-dialekt)

PHPackages © 2026

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