PHPackages                             sphinx/client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. sphinx/client

ActiveLibrary[API Development](/categories/api)

sphinx/client
=============

Sphinx API client

461.5k↓55.7%3[3 issues](https://github.com/peter-gribanov/sphinx-php-client/issues)PHP

Since Apr 5Pushed 10y ago1 watchersCompare

[ Source](https://github.com/peter-gribanov/sphinx-php-client)[ Packagist](https://packagist.org/packages/sphinx/client)[ RSS](/packages/sphinx-client/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Attention! Do not use this repository!
======================================

[](#attention-do-not-use-this-repository)

See this [bug report](http://sphinxsearch.com/bugs/view.php?id=2443) for more info.

[![Latest Stable Version](https://camo.githubusercontent.com/9797eb86c7a91ce4fabd33197466999491f5fa48fc281889ece571354260b88e/68747470733a2f2f706f7365722e707567782e6f72672f737068696e782f636c69656e742f762f737461626c65)](https://packagist.org/packages/sphinx/client)[![Total Downloads](https://camo.githubusercontent.com/7e6907f86b18a10dee39e560a275ecd253258e266c90935cf170f3ace54f4989/68747470733a2f2f706f7365722e707567782e6f72672f737068696e782f636c69656e742f646f776e6c6f616473)](https://packagist.org/packages/sphinx/client)[![Latest Unstable Version](https://camo.githubusercontent.com/a5cab106a4289634341be2c3093c3c50b74a5f7d6aa8358f75bc0115563dcdd7/68747470733a2f2f706f7365722e707567782e6f72672f737068696e782f636c69656e742f762f756e737461626c65)](https://packagist.org/packages/sphinx/client)[![Build Status](https://camo.githubusercontent.com/9d1e86a98833ebc7efd1c1a60319d0515e7dce3bdf7b68d488ea17e22e0b7350/68747470733a2f2f7472617669732d63692e6f72672f70657465722d67726962616e6f762f737068696e782d7068702d636c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sphinx-client)[![Code Coverage](https://camo.githubusercontent.com/f6383104429342b63ade03d5284f32097278378668fe993abbccead0d653cb0a/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70657465722d67726962616e6f762f737068696e782d7068702d636c69656e742f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/peter-gribanov/sphinx-php-client/?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/62c19d9168f79753ba521e8e870704737aa7ebf2fd9de26bc766bc04ecbbedf5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f70657465722d67726962616e6f762f737068696e782d7068702d636c69656e742f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/peter-gribanov/sphinx-php-client/?branch=master)[![SensioLabsInsight](https://camo.githubusercontent.com/d37490b5dfa6cece0606ba8052c8eaea47bfb7b512d2401895f49665bf554289/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f62333730623131662d663730662d343231632d623264382d6537343131623734626233332f6d696e692e706e67)](https://insight.sensiolabs.com/projects/b370b11f-f70f-421c-b2d8-e7411b74bb33)[![License](https://camo.githubusercontent.com/ef0c2184f6fa64ff279f2267822f31197ce8d1995a043a31719376cd8015ff29/68747470733a2f2f706f7365722e707567782e6f72672f737068696e782f636c69656e742f6c6963656e73652e706e67)](https://packagist.org/packages/sphinx/client)

Sphinx PHP client
=================

[](#sphinx-php-client)

Copy / paste from [sphinxsearch/sphinx](https://github.com/sphinxsearch/sphinx/blob/master/api/sphinxapi.php)

Installation
------------

[](#installation)

Add the following to the `require` section of your composer.json file:

```
"sphinx/client": "dev-master"

```

Usage
-----

[](#usage)

Search **test** word in Sphinx for **example\_idx** index.

```
use Sphinx\Client;

$sphinx = new Client();
$sphinx->setServer('localhost', 6712);
$sphinx->setMatchMode(Client::MATCH_ANY);
$sphinx->setMaxQueryTime(3);

$result = $sphinx->query('test', 'example_idx');

var_dump($result);
```

Printed result:

```
array(10) {
  ["error"]=>
  string(0) ""
  ["warning"]=>
  string(0) ""
  ["status"]=>
  int(0)
  ["fields"]=>
  array(3) {
    [0]=>
    string(7) "subject"
    [1]=>
    string(4) "body"
    [2]=>
    string(6) "author"
  }
  ["attrs"]=>
  array(0) {
  }
  ["matches"]=>
  array(1) {
    [3]=>
    array(2) {
      ["weight"]=>
      int(1)
      ["attrs"]=>
      array(0) {
      }
    }
  }
  ["total"]=>
  int(1)
  ["total_found"]=>
  int(1)
  ["time"]=>
  float(0)
  ["words"]=>
  array(1) {
    ["to"]=>
    array(2) {
      ["docs"]=>
      int(1)
      ["hits"]=>
      int(1)
    }
  }
}

```

License
-------

[](#license)

This bundle is under the [GPL-3.0 license](https://opensource.org/licenses/GPL-3.0). See the complete license in the file: LICENSE

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance5

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a6415c83577efe7b70d9ae4a3bb12958adc11c16e530ff844ff217b0fd0c54a?d=identicon)[Peter Gribanov](/maintainers/Peter%20Gribanov)

---

Top Contributors

[![peter-gribanov](https://avatars.githubusercontent.com/u/1954436?v=4)](https://github.com/peter-gribanov "peter-gribanov (80 commits)")

### Embed Badge

![Health badge](/badges/sphinx-client/health.svg)

```
[![Health](https://phpackages.com/badges/sphinx-client/health.svg)](https://phpackages.com/packages/sphinx-client)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
