PHPackages                             123u/presto-sdk - 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. 123u/presto-sdk

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

123u/presto-sdk
===============

Provides the ability to query data in php

0203PHPCI failing

Since Sep 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/devinwang0409/presto-sdk)[ Packagist](https://packagist.org/packages/123u/presto-sdk)[ RSS](/packages/123u-presto-sdk/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

db-query, PHP client
====================

[](#db-query-php-client)

presto-sdk 能让你快速接入数据平台的dbquery presto服务.

```
require(dirname(__DIR__) . '/vendor/autoload.php');

$url            = 'https://digger.123u.com:8443/v2/dbquery';
$requestTimeOut = 60;
$catalog        = 'kudu';
$db             = 'yxs';
$action         = 'presto-sync';
$sql            = "SELECT stat_day, app_plat,week,dau,dau_except_registers,session_increase,not_session_increase,all_increase,avg_online,avg_online_except_register from
(select stat_day,app_plat,week,dau,dau_except_registers,session_increase,not_session_increase,all_increase,avg_online,avg_online_except_register
from data_center_hero_stat.user_basic_info where app_plat=1 ORDER BY stat_day DESC limit 15) as t ORDER BY stat_day ASC";

$queryObj = new HuanLe\DBQueryV2\QueryClient($url, $requestTimeOut);

$queryObj->setDb($db);
$queryObj->setCatalog($catalog);
$queryObj->setPage(true);
$queryObj->setAction($action);
$queryObj->setPageSize(20);
$queryObj->setCurrentPage(1);
$queryObj->setSql($sql);
//true 返回结果是否需要格式化为配置平台输出格式，false则是返回query服务原数据，不做任何处理
$queryObj->setIsDataFormat(true);

print_r($queryObj->getQueryResult());
```

Help and docs
-------------

[](#help-and-docs)

- [Documentation](https://lexiangla.com/teams/k100002/docs/53c573e85c0711e995bd525400a20cd4?company_from=60347ef2a2e011e8a01e5254002f1020)

Installing db-query-sdk
-----------------------

[](#installing-db-query-sdk)

The recommended way to install Guzzle is through [Composer](http://getcomposer.org).

```
# Install Composer
curl -sS https://getcomposer.org/installer | php
```

Next, run the Composer command to install the latest stable version of db-query-sdk:

```
php composer.phar require 123u/db-query-sdk
```

After installing, you need to require Composer's autoloader:

```
require 'vendor/autoload.php';
```

You can then later update db-query-sdk using composer:

```
php composer.phar update
```

Version Guidance
----------------

[](#version-guidance)

VersionStatusPackagistNamespacePHP Version1.0.0EOL`123u/presto-sdk``HuanLe\DBQueryV2`&gt;= 7.0.10

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

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/762cf92b5c28533fb07618a6336e3c7db5590e3488875cc266de56b86bb34905?d=identicon)[timorchao](/maintainers/timorchao)

### Embed Badge

![Health badge](/badges/123u-presto-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/123u-presto-sdk/health.svg)](https://phpackages.com/packages/123u-presto-sdk)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.3k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M542](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M209](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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