PHPackages                             zhukovra/sphinxsearch - 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. zhukovra/sphinxsearch

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

zhukovra/sphinxsearch
=====================

Laravel package to query Sphinxsearch in Laravel 5 Lumen

016PHP

Since Jul 5Pushed 8y ago1 watchersCompare

[ Source](https://github.com/zhukovra/sphinxsearch)[ Packagist](https://packagist.org/packages/zhukovra/sphinxsearch)[ RSS](/packages/zhukovra-sphinxsearch/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (2)Used By (0)

Sphinx Search for Laravel 5 Lumen
=================================

[](#sphinx-search-for-laravel-5-lumen)

Simple Laravel 5 Lumen package for make queries to Sphinx Search. Forked from sngrl/sphinxsearch package for Laravel 5.

This package was created to import to the site packagist.org and allow installation through Composer ().

Installation
============

[](#installation)

Require this package in your composer.json:

```
	"require": {
        /*** Some others packages ***/
		"wneuteboom/sphinxsearch": "dev-master",
	},
```

Run in your console `composer update` command to pull down the latest version of Sphinx Search.

Or just run this in console:

```
composer require wneuteboom/sphinxsearch-lumen:dev-master
```

After updating composer, add the ServiceProvider to the "providers" array in config/app.php:

```
	'providers' => array(
        /*** Some others providers ***/
        WNeuteboom\SphinxSearch\SphinxSearchServiceProvider::class,
    ),
```

You can add this line to the files, where you may use SphinxSearch:

```
use WNeuteboom\SphinxSearch;
```

Configuration
=============

[](#configuration)

To use Sphinx Search, you need to configure your indexes and what model it should query. To do so, publish the configuration into your app.

```
php artisan vendor:publish --provider=WNeuteboom\SphinxSearch\SphinxSearchServiceProvider --force
```

This will create the file `config/sphinxsearch.php`. Modify as needed the host and port.

```
return array (
	'host'    => '127.0.0.1',
	'port'    => 9312,
	'timeout' => 30
);
```

Usage
=====

[](#usage)

Basic query (raw sphinx results)

```
$sphinx = new SphinxSearch();

$sphinx
	->index('products')
	->select('id, name')
	->weights([
		'name' => 1
	])
	->search("string to search")
	->skip(0)
	->take(100)
	->get();
```

Basic query (with Eloquent)

```
$sphinx = new SphinxSearch;
$sphinx
	->index('products')
	->select('id, name')
	->table(\App\SpecificModel)
	->weights([
		'name' => 1
	])
	->search("string to search")
	->skip(0)
	->take(100)
	->get();
```

License
=======

[](#license)

WNeuteboom Sphinx Search is open-sourced software licensed under the MIT license

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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://www.gravatar.com/avatar/312140a236c5133ed100b2c4643077a81279346e15f78654da298599e3f71be3?d=identicon)[zhukovra](/maintainers/zhukovra)

---

Top Contributors

[![WNeuteboom](https://avatars.githubusercontent.com/u/5967365?v=4)](https://github.com/WNeuteboom "WNeuteboom (12 commits)")[![sngrl](https://avatars.githubusercontent.com/u/6196684?v=4)](https://github.com/sngrl "sngrl (11 commits)")[![zhukovra](https://avatars.githubusercontent.com/u/289431?v=4)](https://github.com/zhukovra "zhukovra (3 commits)")

### Embed Badge

![Health badge](/badges/zhukovra-sphinxsearch/health.svg)

```
[![Health](https://phpackages.com/badges/zhukovra-sphinxsearch/health.svg)](https://phpackages.com/packages/zhukovra-sphinxsearch)
```

###  Alternatives

[awesome-nova/dependent-filter

Dependent filters for Laravel Nova

26190.2k](/packages/awesome-nova-dependent-filter)

PHPackages © 2026

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