All Projects → nilportugues → php-sphinx-search

nilportugues / php-sphinx-search

Licence: MIT License
Sphinx for PHP 5.3 and above. Fully PHPUnit tested.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to php-sphinx-search

sphinxql
SphinxQL query builder for Node.js. sphinxql package supports Manticore Search and Sphinx Search
Stars: ✭ 21 (+10.53%)
Mutual labels:  sphinx, sphinxsearch
sphinx-wavedrom
A sphinx extension that allows including wavedrom diagrams by using its text-based representation
Stars: ✭ 26 (+36.84%)
Mutual labels:  sphinx
metatron-doc-discovery
Metatron Discovery user documents
Stars: ✭ 18 (-5.26%)
Mutual labels:  sphinx
sphinx-rest-cheatsheet
A compact cheat sheet for writing documentation string for Sphinx, with focus on Python.
Stars: ✭ 17 (-10.53%)
Mutual labels:  sphinx
python3 module template
Template to create python module including unit tests, Sphinx documentation and setup.
Stars: ✭ 19 (+0%)
Mutual labels:  sphinx
MapServer-documentation
Source repository for the MapServer documentation, for the live website. Please submit pull requests to the 'main' branch.
Stars: ✭ 29 (+52.63%)
Mutual labels:  sphinx
autodoc pydantic
Seamlessly integrate pydantic models in your Sphinx documentation.
Stars: ✭ 60 (+215.79%)
Mutual labels:  sphinx
sphinx-gradle-plugin
Sphinx site generation plugin for Gradle
Stars: ✭ 19 (+0%)
Mutual labels:  sphinx
jwql
The James Webb Space Telescope Quicklook Application
Stars: ✭ 42 (+121.05%)
Mutual labels:  sphinx
matlabdomain
A Sphinx extension for documenting Matlab code
Stars: ✭ 34 (+78.95%)
Mutual labels:  sphinx
sphinx rtd dark mode
Adds a toggleable dark mode to the Read the Docs theme for Sphinx.
Stars: ✭ 29 (+52.63%)
Mutual labels:  sphinx
emojicodes
An extension to use emoji codes in your Sphinx documentation! 😍
Stars: ✭ 39 (+105.26%)
Mutual labels:  sphinx
sphobjinv
Toolkit for manipulation and inspection of Sphinx objects.inv files
Stars: ✭ 53 (+178.95%)
Mutual labels:  sphinx
sphinx-markdown-builder
sphinx builder that outputs markdown files.
Stars: ✭ 135 (+610.53%)
Mutual labels:  sphinx
Sphinx-Dipper
Sphinx Custom Kernel for Mi 8 (Dipper)
Stars: ✭ 17 (-10.53%)
Mutual labels:  sphinx
docker
Official docker for Manticore Search
Stars: ✭ 39 (+105.26%)
Mutual labels:  sphinxsearch
pros-docs
Source for the PROS website
Stars: ✭ 26 (+36.84%)
Mutual labels:  sphinx
books
A collection of online books for data science, computer science and coding!
Stars: ✭ 29 (+52.63%)
Mutual labels:  sphinx
projection-pursuit
An implementation of multivariate projection pursuit regression and univariate classification
Stars: ✭ 24 (+26.32%)
Mutual labels:  sphinx
openapi
OpenAPI (fka Swagger) spec renderer for Sphinx.
Stars: ✭ 78 (+310.53%)
Mutual labels:  sphinx

Sphinx for PHP 5.3 and above

Build Status Latest Stable Version Total Downloads License

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

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, this version of the SphinxClient for PHP includes a new method.

  • 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.

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

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

5. Author

Nil Portugués Calderó

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].