Skip to content

sokil/php-sphinxsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-sphinxsearch

PHP wrapper to sphinx search pecl extension. Working with search results as objects.

Installation

You need to have sphinx pecl extension installed. For Ubuntu or Debian based distributives:

$ sudo apt-get install php5-dev php-pear libsphinxclient-dev
$ sudo pecl install sphinx

Add requirement to your composer:

{
    "require": {
        "sokil/php-sphinxsearch": "dev-master"
    }
}

Basic Usage

$qf = new QueryFactory('127.0.0.1', '23023');
        
$resultSet = $qf->find()
    ->in('idx_posts')
    ->match('If you can')
    ->fetch();