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

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

davispeixoto/laravel-4-solr
===========================

Laravel 4 Apache Solr simple query client

0.0.3(12y ago)91033[1 issues](https://github.com/davispeixoto/Laravel-4-Solr/issues)MITPHPPHP &gt;=5.3.0

Since May 14Pushed 10y ago1 watchersCompare

[ Source](https://github.com/davispeixoto/Laravel-4-Solr)[ Packagist](https://packagist.org/packages/davispeixoto/laravel-4-solr)[ RSS](/packages/davispeixoto-laravel-4-solr/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (3)Versions (4)Used By (0)

Laravel 4 Apache Solr
=====================

[](#laravel-4-apache-solr)

[![Build Status](https://camo.githubusercontent.com/9a56d097827f0181fb725e27796cd01b7f83a0b89ee967d46c39cfa07f3509cd/68747470733a2f2f7472617669732d63692e6f72672f6461766973706569786f746f2f4c61726176656c2d342d536f6c722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/davispeixoto/Laravel-4-Solr)

This Laravel 4 package provides an interface for consuming (querying) [Apache Solr](https://lucene.apache.org/solr/) via its restful interface.

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

[](#installation)

Begin by installing this package through Composer. Edit your project's `composer.json` file to require `davispeixoto/laravel-4-solr`.

```
"require": {
	"laravel/framework": "4.1.*",
	"davispeixoto/laravel-4-solr": "dev-master"
}

```

Next, update Composer from the Terminal:

```
composer update

```

Once this operation completes, still in Terminal run:

```
php artisan config:publish davispeixoto/laravel-4-solr

```

Update the settings in the generated `app/config/packages/davispeixoto/laravel-4-solr` configuration file with solr endpoint, port, output format.

Finally add the service provider. Open `app/config/app.php`, and add a new item to the providers array.

```
'Davispeixoto\Laravel4Solr\Laravel4SolrServiceProvider'

```

That's it! You're all set to go. Just use:

```
Route::get('/test', function() {
	try {
    	Solr::setCore('products');
    	Solr::setFQ('color' , 'blue*');
    	Solr::outputFormat('json');
    	$results = Solr::getResults();
    	echo print_r($results , true);
	} catch (Exception $e) {
		Log::error($e->getMessage());
		die($e->getMessage() . $e->getTraceAsString());
	}
});

```

### License

[](#license)

This library is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

### Versioning

[](#versioning)

This project follows the [Semantic Versioning](http://semver.org/)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

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

3

Last Release

4431d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/77ce0bed19c054d8812aedfbd93a6d3a9e40935a818917fa4c6c5427bb447d3b?d=identicon)[davispeixoto](/maintainers/davispeixoto)

---

Top Contributors

[![davispeixoto](https://avatars.githubusercontent.com/u/1113230?v=4)](https://github.com/davispeixoto "davispeixoto (13 commits)")[![kailashyadav](https://avatars.githubusercontent.com/u/209676?v=4)](https://github.com/kailashyadav "kailashyadav (1 commits)")

---

Tags

laravelsolrLaravel 4search engineapache solr

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/davispeixoto-laravel-4-solr/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M342](/packages/psalm-plugin-laravel)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M183](/packages/laravel-ai)[jeroen-g/explorer

Next-gen Elasticsearch driver for Laravel Scout.

399672.8k](/packages/jeroen-g-explorer)[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React/Svelte) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

4925.3k](/packages/erag-laravel-lang-sync-inertia)[ublabs/blade-simple-icons

A package to easily make use of Simple Icons in your Laravel Blade views.

1963.4k](/packages/ublabs-blade-simple-icons)

PHPackages © 2026

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