Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sokil/php-sphinxsearch
PHP wrapper to sphinx search pecl extension
https://github.com/sokil/php-sphinxsearch
php sphinx sphinx-search
Last synced: 23 days ago
JSON representation
PHP wrapper to sphinx search pecl extension
- Host: GitHub
- URL: https://github.com/sokil/php-sphinxsearch
- Owner: sokil
- License: mit
- Created: 2014-02-11T21:21:17.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2017-07-04T11:32:14.000Z (over 7 years ago)
- Last Synced: 2024-10-02T20:20:51.846Z (about 1 month ago)
- Topics: php, sphinx, sphinx-search
- Language: PHP
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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:
```javascript
{
"require": {
"sokil/php-sphinxsearch": "dev-master"
}
}
```Basic Usage
-----------```php
$qf = new QueryFactory('127.0.0.1', '23023');
$resultSet = $qf->find()
->in('idx_posts')
->match('If you can')
->fetch();
```