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. davispeixoto/laravel-4-solr

ActiveLibrary

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

Laravel 4 Apache Solr simple query client

0.0.3(12y ago)101033[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 yesterday

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

27

—

LowBetter than 49% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity18

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

4381d 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

[matchory/elasticsearch

The missing elasticsearch ORM for Laravel!

3059.0k](/packages/matchory-elasticsearch)[julien-c/mongovel

A Laravel-ish wrapper to the PHP Mongo driver

357.7k](/packages/julien-c-mongovel)[mohsen/captcha

A simple captcha for laravel 4

125.2k](/packages/mohsen-captcha)

PHPackages © 2026

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