{"id":15663039,"url":"https://github.com/nilportugues/php-sphinx-search","last_synced_at":"2025-05-05T21:33:42.794Z","repository":{"id":9574138,"uuid":"11487914","full_name":"nilportugues/php-sphinx-search","owner":"nilportugues","description":"Sphinx for PHP 5.3 and above. Fully PHPUnit tested.","archived":false,"fork":false,"pushed_at":"2016-03-11T14:45:49.000Z","size":163,"stargazers_count":18,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-18T11:42:58.422Z","etag":null,"topics":["php","php7","sphinx","sphinx-search","sphinxclient","sphinxsearch"],"latest_commit_sha":null,"homepage":"http://nilportugues.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nilportugues.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-17T21:23:33.000Z","updated_at":"2023-09-25T17:20:10.000Z","dependencies_parsed_at":"2022-08-25T23:12:02.910Z","dependency_job_id":null,"html_url":"https://github.com/nilportugues/php-sphinx-search","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilportugues%2Fphp-sphinx-search","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilportugues%2Fphp-sphinx-search/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilportugues%2Fphp-sphinx-search/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nilportugues%2Fphp-sphinx-search/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nilportugues","download_url":"https://codeload.github.com/nilportugues/php-sphinx-search/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252579994,"owners_count":21771248,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php","php7","sphinx","sphinx-search","sphinxclient","sphinxsearch"],"created_at":"2024-10-03T13:35:18.751Z","updated_at":"2025-05-05T21:33:42.755Z","avatar_url":"https://github.com/nilportugues.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sphinx for PHP 5.3 and above\n[![Build Status](https://travis-ci.org/nilportugues/php-sphinx-search.png?branch=master)](https://travis-ci.org/nilportugues/php-sphinx-search) \n[![Latest Stable Version](https://poser.pugx.org/nilportugues/sphinx-search/v/stable.svg)](https://packagist.org/packages/nilportugues/sphinx-search) [![Total Downloads](https://poser.pugx.org/nilportugues/sphinx-search/downloads.svg)](https://packagist.org/packages/nilportugues/sphinx-search)  [![License](https://poser.pugx.org/nilportugues/sphinx-search/license.svg)](https://packagist.org/packages/nilportugues/sphinx-search)\n\nThis class is a port of the original Sphinx API class by **Andrew Aksyonoff** and [Sphinx Technologies Inc][1] to PHP 5.3 and above.\n\n## 1. Requirements\n* Composer\n* PHP 5.3 or above\n* SphinxSearch\n\n## 2. Added removeFilter\nWhile 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.\n\n* **removeFilter**: The original SphinxClient allows you to clear all filters. This method removes a specific filter previously set.\n\n```php\n\u003c?php\n\n$sphinxSearch = new \\NilPortugues\\Sphinx\\SphinxClient();\n\n//Do connection and set up search method...\n$sphinxSearch-\u003esetServer('127.0.0.1',9312);\n\n\n// Do search...\n// Result would contain \"The Amazing Spider-Man 2\", to be in theatres in 2014.\n$sphinxSearch-\u003esetFilter('year',array(2014));\n$result = $sphinxSearch-\u003equery('Spiderman','movies');\n\n// Unset the filter to stop filtering by year\n// Now we'll get all the Spiderman movies.\n$sphinxSearch-\u003eremoveFilter('year');\n$result = $sphinxSearch-\u003equery('Spiderman','movies');\n```\n## 3. Added chainable methods\nWhile updating the code, chaining capability has been added. SphinxClient's setters can be chained resulting in a cleaner code.\n```php\n$sphinxSearch = new \\NilPortugues\\Sphinx\\SphinxClient();\n\n$result = $sphinxSearch\n                -\u003esetFilter('year',array(2014))\n                -\u003equery('Spiderman','movies')\n        ;\n```\n\n\n## 5. Author\nNil Portugués Calderó\n - \u003ccontact@nilportugues.com\u003e\n - http://nilportugues.com\n\n[1]: [http://sphinxsearch.com/]\n[2]: [http://sphinxsearch.com/docs/current.html]\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilportugues%2Fphp-sphinx-search","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnilportugues%2Fphp-sphinx-search","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnilportugues%2Fphp-sphinx-search/lists"}