Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Sphinx Bundle

Sphinx Bundle Laravel Package

javer/sphinx-bundle

Integrates the Sphinx full-text search engine with Laravel, letting you define indexes, run fluent search queries, and blend Sphinx results into your Eloquent models. A lightweight bundle for adding fast, scalable keyword search to PHP applications without leaving the familiar Laravel workflow.

View on GitHub
Deep Wiki
Context7

Symfony bundle which provides integration of Sphinx search engine with Symfony using SphinxQL

Frequently asked questions about Sphinx Bundle
Is javer/sphinx-bundle a Laravel package?
No. javer/sphinx-bundle is a Symfony bundle that integrates the Sphinx full-text search engine into Symfony applications through bundle configuration, dependency injection, and Symfony console commands. Laravel has no bundle system, so the package cannot be installed and used as a native Laravel package. Treat it as reference source code for a Laravel port rather than a drop-in dependency.
Can I composer require javer/sphinx-bundle in a Laravel app?
It is not advisable. Installing the bundle pulls Symfony framework and bundle dependencies that can collide with the Symfony 6 or 7 components already shipped by Laravel 10 and 11. That creates dependency-resolution conflicts you cannot productively fix inside a Laravel application. Depend on a framework-agnostic SphinxQL client or fork only the reusable core instead.
What parts of javer/sphinx-bundle are reusable in Laravel?
The reusable slice is the SphinxQL connection and transport layer for the searchd daemon on port 9306, the query-builder DSL that emits MATCH, WITHIN GROUP, OPTION, SNIPPET, and HIGHLIGHT clauses, plus index helpers and DTOs. What must be dropped or reimplemented includes the Symfony DI extension and configuration tree, console commands, and the profiler data collector. In a Laravel app you would wrap the core with a service provider and facade.
How do I configure Sphinx indexes in Laravel if this is a Symfony bundle?
You cannot use the bundle's Symfony configuration tree directly. A Laravel port would replace it with config/sphinx.php plus a SphinxServiceProvider that binds connections and index definitions into the container. Index management helpers from the bundle can be kept, but Artisan commands would replace Symfony console commands. Plan for roughly a small service provider and facade around the SphinxQL core.
Does javer/sphinx-bundle support Laravel 10 and Laravel 11?
There is no official Laravel support. The package is a Symfony bundle with no Laravel service provider, no Laravel configuration files, no Artisan commands, and no Laravel version constraints. Any use in Laravel 10 or 11 requires porting or wrapping the framework-agnostic pieces yourself. Do not assume Symfony-version compatibility translates into Laravel compatibility.
How do I test Sphinx search integration in a Laravel app?
Because the bundle has no Laravel testing helpers, you need to build your own test strategy around the SphinxQL layer. Use a real searchd or Manticore instance in integration tests, or fake the query client behind an interface for unit tests. Keep index definitions and query builders testable without a live daemon. Also test connection failure and stale-socket behavior separately from search relevance.
What are Laravel-friendly alternatives to javer/sphinx-bundle?
Laravel Scout with a suitable driver is the usual starting point for keyword search, and community packages exist for Manticore Search, which speaks the same SphinxQL protocol. For simple needs, raw SphinxQL over PDO or a thin HTTP client to Manticore's search endpoint is often enough. Elasticsearch, Meilisearch, and Typesense are alternatives when you do not require Sphinx specifically.
Should Laravel teams use Sphinx or Manticore Search?
Make that decision engine-first, not bundle-first. Sphinx is largely stagnant, while Manticore Search is the maintained fork and speaks the same SphinxQL and MySQL protocol. If Manticore is acceptable, community Laravel packages may remove the need for this bundle entirely. Confirm your target engine version before designing the integration.
How do I query SphinxQL from Laravel without Symfony dependencies?
Use PDO with the MySQL driver pointed at the searchd daemon on port 9306, with emulated prepares enabled and a dedicated connection. Treat SphinxQL as MySQL-like but not MySQL: no transactions, limited DDL and SET semantics, and no SET NAMES assumptions. Never share the Eloquent connection pool or read/write splitter, and reset or health-check the connection under Octane and long-lived workers.
Is javer/sphinx-bundle maintained and production-ready?
Project health is a concern: around 24 stars, zero dependents, a last release in March 2023, and effectively a single-maintainer side project. There is no security policy, no deprecation policy, and no LTS commitment. Use it as a specification for talking to SphinxQL from PHP, not as a production dependency in a Laravel codebase.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect