2017 © Pedro Peláez
 

library sphinx-search

Fully unit tested SphinxClient (SphinxAPI) for PHP5.3 and above to be used with SphinxSearch

image

nilportugues/sphinx-search

Fully unit tested SphinxClient (SphinxAPI) for PHP5.3 and above to be used with SphinxSearch

  • Friday, March 11, 2016
  • by nilportugues
  • Repository
  • 2 Watchers
  • 19 Stars
  • 102,750 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 8 Forks
  • 0 Open issues
  • 6 Versions
  • 5 % Grown

The README.md

Sphinx for PHP 5.3 and above

Build Status Latest Stable Version Total Downloads License, (*1)

This class is a port of the original Sphinx API class by Andrew Aksyonoff and Sphinx Technologies Inc to PHP 5.3 and above., (*2)

1. Requirements

  • Composer
  • PHP 5.3 or above
  • SphinxSearch

2. Added removeFilter

While all the existing methods are available and vastly documented in the [Sphinx Documentation][2], this version of the SphinxClient for PHP includes a new method., (*3)

  • removeFilter: The original SphinxClient allows you to clear all filters. This method removes a specific filter previously set.
<?php

$sphinxSearch = new \NilPortugues\Sphinx\SphinxClient();

//Do connection and set up search method...
$sphinxSearch->setServer('127.0.0.1',9312);


// Do search...
// Result would contain "The Amazing Spider-Man 2", to be in theatres in 2014.
$sphinxSearch->setFilter('year',array(2014));
$result = $sphinxSearch->query('Spiderman','movies');

// Unset the filter to stop filtering by year
// Now we'll get all the Spiderman movies.
$sphinxSearch->removeFilter('year');
$result = $sphinxSearch->query('Spiderman','movies');

3. Added chainable methods

While updating the code, chaining capability has been added. SphinxClient's setters can be chained resulting in a cleaner code., (*4)

$sphinxSearch = new \NilPortugues\Sphinx\SphinxClient();

$result = $sphinxSearch
                ->setFilter('year',array(2014))
                ->query('Spiderman','movies')
        ;

5. Author

Nil Portugués Calderó - contact@nilportugues.com - http://nilportugues.com, (*5)

The Versions

11/03 2016

dev-master

9999999-dev https://github.com/nilopc/NilPortugues_PHP_Sphinx

Fully unit tested SphinxClient (SphinxAPI) for PHP5.3 and above to be used with SphinxSearch

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

search sphinx sphinxapi sphinx search search engine

11/03 2016

1.0.3

1.0.3.0 https://github.com/nilopc/NilPortugues_PHP_Sphinx

Fully unit tested SphinxClient (SphinxAPI) for PHP5.3 and above to be used with SphinxSearch

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

search sphinx sphinxapi sphinx search search engine

13/01 2016

1.0.2

1.0.2.0 https://github.com/nilopc/NilPortugues_PHP_Sphinx

Fully unit tested SphinxClient (SphinxAPI) for PHP5.3 and above to be used with SphinxSearch

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

search sphinx sphinxapi sphinx search search engine

08/07 2014

2.x-dev

2.9999999.9999999.9999999-dev https://github.com/nilopc/NilPortugues_PHP_Sphinx

Fully unit tested SphinxClient (SphinxAPI) for PHP5.3 and above to be used with SphinxSearch

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

search sphinx sphinxapi sphinx search search engine

24/04 2014

1.1.0.x-dev

1.1.0.9999999-dev https://github.com/nilopc/NilPortugues_PHP_Sphinx

Fully unit tested SphinxClient (SphinxAPI) for PHP5.3 and above to be used with SphinxSearch

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

search sphinx sphinxapi sphinx search search engine

22/07 2013

1.0.0

1.0.0.0 https://github.com/nilopc/NilPortugues_PHP_Sphinx

Fully unit tested SphinxClient (SphinxAPI) for PHP5.3 and above to be used with SphinxSearch

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

search sphinx sphinxapi sphinx search search engine