Download the PHP package euclid1990/php-sphinx-search without Composer
On this page you can find all versions of the php package euclid1990/php-sphinx-search. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package php-sphinx-search
PHP Sphinx Search
PHP Sphinx search tool (An external solution for database full-text search). Support Composer & Laravel Framework.
Installation
PHP 5.4 is required.
The PHP Sphinx Search Service Provider can be installed via Composer by requiring the
euclid1990/php-sphinx-search
package in your
project's composer.json
.
or
Require this package with composer:
Update your packages with or install with .
Setup
1. Commmon PHP
Add boostrap autoload file:
2. For Laravel
- To use the Sphinx Search Service, you must register the provider when bootstrapping your Laravel application. There are essentially two ways to do this.
Find the providers
key in config/app.php
and register the Sphinx Search Service Provider.
for Laravel 5.1+
Find the aliases
key in config/app.php
.
for Laravel 5.1+
-
If you need to override the default configuration options (server/port), please use the config publish command
- For Laravel 5.4 config:publish does not work. Use the below command instead.
Usage
1. Common PHP:
Please refer to demo/run.php or you can execute this command line:
2. For Laravel
Reference
Document
How To Install and Configure Sphinx on Ubuntu 14.04
Database
Just for testing purposes
Sphinx
Download
- Release Repository
-
In this tutorial, I've used Ubuntu 12.04 LTS x86_64 DEB.
- If have errors:
Run below command:
Config
-
After install completed, We have directory:
/etc/sphinxsearch
. Please modifyphp-sphinx-search/demo/sphinx.conf
before running followings command: - Must learn about config params:
- For indexing and re-indexing full-text indexes. By default, Sphinx reads the configuration file at /etc/sphinxsearch/sphinx.conf.
Or
- Start sphinx service
Change "START=yes"
.
Finally, start the Sphinx daemon:
Or
-
Check Sphinx is listening port 9306:
- Connect with mysql client:
All versions of php-sphinx-search with dependencies
illuminate/config Version ~5.0
illuminate/support Version ~5.0
foolz/sphinxql-query-builder Version ~1.0