PHPackages                             pluk77/symfony-sphinx-bundle - 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. pluk77/symfony-sphinx-bundle

ActiveSymfony-bundle[Search &amp; Filtering](/categories/search)

pluk77/symfony-sphinx-bundle
============================

Provides integration of Sphinx search engine with Symfony4 using SphinxQL

512.1k↓21.4%5[3 issues](https://github.com/pluk77/SymfonySphinxBundle/issues)PHP

Since Dec 18Pushed 5y ago2 watchersCompare

[ Source](https://github.com/pluk77/SymfonySphinxBundle)[ Packagist](https://packagist.org/packages/pluk77/symfony-sphinx-bundle)[ RSS](/packages/pluk77-symfony-sphinx-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

SymfonySphinxBundle
===================

[](#symfonysphinxbundle)

Forked from javer/JaverSphinxBundle

This bundle provides integration of [Sphinx](http://sphinxsearch.com) or [Manticore](https://manticoresearch.com/) search engine with Symfony4+.

Features:

- SphinxQL Query Builder
- Integration with [doctrine/orm](https://packagist.org/packages/doctrine/orm)
- Symfony Profiler toolbar section with number of executed queries and profiler page with detailed information about executed queries

This fork is not backwards compatible with Javer/JaverSphinxBundle

Requirements
------------

[](#requirements)

- PHP 7.1+
- pdo\_mysql php extension
- Symfony 4+

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

[](#installation)

Install the bundle using composer:

```
composer require pluk77/symfony-sphinx-bundle
```

Configuration
-------------

[](#configuration)

Add to your `config/package/symfony_sphinx.yml` the following options:

```
symfony_sphinx:
    host: 127.0.0.1
    port: 9306
```

Full configuration with default values:

```
symfony_sphinx:
    host: 127.0.0.1
    port: 9306
```

Usage
-----

[](#usage)

Synthetic example of SELECT query which returns an array:

```
$results = $sphinx->createQuery()
    ->select('id', 'column1', 'column2', 'WEIGHT() as weight')
    ->from(['index1', 'index2'])
    ->where('column3', 'value1')
    ->andWhere('column4', '>', 4)
    ->andWhere('column5', [5, '6'])
    ->andWhere('column6', 'NOT IN', [7, '8'])
    ->andWhere('column7', 'BETWEEN', [9, 10])
    ->match('column8', 'value2')
    ->andMatch(['column9', 'column10'], 'value3')
    ->orMatch(['column9', 'column10'], 'value3')
    ->rawMatch('(@(first_name,alias_first_name) hello* | @first_name john)')
    ->orRawMatch('(@(first_name,alias_first_name) hello* | @first_name john)')
    ->andRawMatch('(@(first_name,alias_first_name) hello* | @first_name john)')
    ->groupBy('column11')
    ->andGroupBy('column12')
    ->withinGroupOrderBy('column13', 'desc')
    ->AndWithinGroupOrderBy('column14')
    ->having('weight', '>', 2)
    ->orderBy('column15', 'desc')
    ->andOrderBy('column16')
    ->setFirstResult(5)
    ->setMaxResults(10)
    ->setOption('agent_query_timeout', 10000)
    ->addOption('max_matches', 1000)
    ->addOption('field_weights', '(column9=10, column10=3)')
    ->getResults();
```

Entities fetched from the database using Doctrine ORM QueryBuilder by searching phrase in them using Sphinx:

```
$queryBuilder = $this->getRepository(Patient::class)
	->createQueryBuilder('p')
	->select();

$query = $sphinx->createQuery()
	->select('id')
	->from('patient')
	->match(['last_name','first_name'], 'jo*')
	->setOption('field_weights', '(last_name=10, first_name=5)')
	->useQueryBuilder($queryBuilder, 'p', 'id');

$results = $query->getResults();
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance8

Infrequent updates — may be unmaintained

Popularity31

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

Top contributor holds 66.7% 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://www.gravatar.com/avatar/26e78ddcb0e7a41bbf4e4cbab8adda09bdd3f3c5a3379be93e81d7fa548f818f?d=identicon)[pluk77](/maintainers/pluk77)

---

Top Contributors

[![javer](https://avatars.githubusercontent.com/u/591296?v=4)](https://github.com/javer "javer (8 commits)")[![StudioMaX](https://avatars.githubusercontent.com/u/9878458?v=4)](https://github.com/StudioMaX "StudioMaX (2 commits)")[![rumours86](https://avatars.githubusercontent.com/u/661490?v=4)](https://github.com/rumours86 "rumours86 (1 commits)")[![tacman](https://avatars.githubusercontent.com/u/619585?v=4)](https://github.com/tacman "tacman (1 commits)")

---

Tags

manticoremanticore-searchmanticoresearchphpsphinxsphinxqlsphinxsearchsymfonysymfony-bundlesymfony4symfony5

### Embed Badge

![Health badge](/badges/pluk77-symfony-sphinx-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/pluk77-symfony-sphinx-bundle/health.svg)](https://phpackages.com/packages/pluk77-symfony-sphinx-bundle)
```

###  Alternatives

[ruflin/elastica

Elasticsearch Client

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

PHP Client for OpenSearch

15224.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)
