PHPackages                             singlestore/http-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. [Database &amp; ORM](/categories/database)
4. /
5. singlestore/http-client

ActiveLibrary[Database &amp; ORM](/categories/database)

singlestore/http-client
=======================

This API allows you to execute SQL statements against a SingleStore database. It supports all statements that can be run in a direct database connection, and uses conventional data type conversion.

011PHP

Since Mar 5Pushed 2y ago4 watchersCompare

[ Source](https://github.com/singlestore-labs/http-client-php)[ Packagist](https://packagist.org/packages/singlestore/http-client)[ RSS](/packages/singlestore-http-client/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

SingleStore HTTP Client for PHP
===============================

[](#singlestore-http-client-for-php)

(singlestore/http-client)
=========================

[](#singlestorehttp-client)

**Attention**: The code in this repository is intended for experimental use only and is not fully tested, documented, or supported by SingleStore. Visit the [SingleStore Forums](https://www.singlestore.com/forum/) to ask questions about this repository.

This API allows you to execute SQL statements against a SingleStore database. It supports all statements that can be run in a direct database connection, and uses conventional data type conversion.

For more information, please visit .

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

[](#installation)

### Requirements

[](#requirements)

PHP 7.3 and later. Should also work with PHP 8.0 but has not been tested.

### Composer

[](#composer)

This client is designed to be deployed using Composer. Since it is hosted at [Packagist](https://packagist.org/), you can use the `composer` command to automatically install it into your project as follows:

```
composer require singlestore/http-client
```

Alternatively, you can add the binding manually by editing your project's `composer.json` file:

```
{
  "require": {
    "singlestore/http-client": "^2.0"
  }
}
```

Then run `composer update` followed by `composer install`.

### ZIP File

[](#zip-file)

If you do not want to use Composer, you can also generate and download the package in a ZIP file using the [php-download.com](https://php-download.com/) website. Here is a link to the [SingleStore HTTP Client](https://php-download.com/package/singlestore/http-client).

Example
-------

[](#example)

This package contains an [example.php](example.php) file that explains how to use the SingleStore HTTP Client for PHP. The instructions at the top explain how to run it. Included are a basic example and several extended examples. The basic example will show you how to get started quickly with a few lines of code. The extended examples build on the basic one and illustrate other API calls and usage.

API Endpoints
-------------

[](#api-endpoints)

All URIs are relative to **

ClassMethodHTTP requestDescription*HttpApi*[**exec**](docs/Api/HttpApi.md#exec)**POST** /api/v2/execExec*HttpApi*[**ping**](docs/Api/HttpApi.md#ping)**GET** /pingPing*HttpApi*[**rows**](docs/Api/HttpApi.md#rows)**POST** /api/v2/query/rowsQuery*HttpApi*[**spec**](docs/Api/HttpApi.md#spec)**GET** /api/v2/specSpec*HttpApi*[**tuples**](docs/Api/HttpApi.md#tuples)**POST** /api/v2/query/tuplesQueryModels
------

[](#models)

- [Column](docs/Model/Column.md)
- [ExecInput](docs/Model/ExecInput.md)
- [ExecOutput](docs/Model/ExecOutput.md)
- [QueryInput](docs/Model/QueryInput.md)
- [QueryInputArg](docs/Model/QueryInputArg.md)
- [QueryOutput](docs/Model/QueryOutput.md)
- [QueryOutputError](docs/Model/QueryOutputError.md)
- [ResultSet](docs/Model/ResultSet.md)
- [RowValue](docs/Model/RowValue.md)
- [StreamOutput](docs/Model/StreamOutput.md)
- [StreamResult](docs/Model/StreamResult.md)

Authorization
-------------

[](#authorization)

### BasicAuth

[](#basicauth)

- **Type**: HTTP basic authentication

Tests
-----

[](#tests)

To run the tests, use:

```
composer install
vendor/bin/phpunit
```

About this package
------------------

[](#about-this-package)

This PHP package was automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project, with some custom templating:

- API version: `2.0.0`
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`

###  Health Score

13

—

LowBetter than 1% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity19

Early-stage or recently created project

 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/cc2db5c83b6d58677c6f67898b97ab8825faff3731654fcf252ffd241ef27342?d=identicon)[carl@singlestore.com](/maintainers/carl@singlestore.com)

![](https://avatars.githubusercontent.com/u/9485566?v=4)[Pete Vetere](/maintainers/pvetere)[@pvetere](https://github.com/pvetere)

---

Top Contributors

[![galleymemsql](https://avatars.githubusercontent.com/u/60153421?v=4)](https://github.com/galleymemsql "galleymemsql (2 commits)")

### Embed Badge

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

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

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k117.2M118](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198741.5k12](/packages/pgvector-pgvector)[jfelder/oracledb

Oracle DB driver for Laravel

11518.4k](/packages/jfelder-oracledb)

PHPackages © 2026

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