PHPackages                             tranch-xiao/php-thrift-impala - 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. tranch-xiao/php-thrift-impala

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

tranch-xiao/php-thrift-impala
=============================

PHP Thrift Client for Impala and Hive Queries

v0.1.2(10y ago)65121GPL-2.0PHPPHP &gt;=5.3.0

Since Jul 24Pushed 10y ago2 watchersCompare

[ Source](https://github.com/tranch/php-thrift-impala)[ Packagist](https://packagist.org/packages/tranch-xiao/php-thrift-impala)[ Docs](https://github.com/tranch-xiao/php-thrift-impala)[ RSS](/packages/tranch-xiao-php-thrift-impala/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

PHP ThriftSQL
=============

[](#php-thriftsql)

This project based [Automattic/php-thrift-sql](https://github.com/Automattic/php-thrift-sql).

Currently the following engines are supported:

- *Hive* -- Over the HiveServer2 Thrift interface, SASL is enabled by default so username and password must be provided however this can be turned off with the `setSasl()` method before calling `connect()`.
- *Impala* -- Over the Impala Service Thrift interface which extends the Beeswax protocol.

Usage Example
-------------

[](#usage-example)

```
// Load this lib
require_once __DIR__ . '/vendor/autoload.php';

// Try out an Impala query
$impala = new \ThriftSQL\Impala( 'hd-node1' );
$impalaTables = $impala
  ->connect()
  ->queryAndFetchAll( 'SHOW TABLES' );
print_r( $impalaTables );

// Don't forget to clear the client and close socket.
$impala->disconnect();
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 89.1% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3944d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7a79922b237109094d6740b38bbfb8b48282814a86fb2a6f82e77ca2a1115713?d=identicon)[Tranch](/maintainers/Tranch)

---

Top Contributors

[![xyu](https://avatars.githubusercontent.com/u/373804?v=4)](https://github.com/xyu "xyu (57 commits)")[![coreh](https://avatars.githubusercontent.com/u/418473?v=4)](https://github.com/coreh "coreh (5 commits)")[![joostshao](https://avatars.githubusercontent.com/u/3615951?v=4)](https://github.com/joostshao "joostshao (1 commits)")[![tranch](https://avatars.githubusercontent.com/u/5999732?v=4)](https://github.com/tranch "tranch (1 commits)")

---

Tags

sqlthrifthiveImpala

### Embed Badge

![Health badge](/badges/tranch-xiao-php-thrift-impala/health.svg)

```
[![Health](https://phpackages.com/badges/tranch-xiao-php-thrift-impala/health.svg)](https://phpackages.com/packages/tranch-xiao-php-thrift-impala)
```

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k578.4M5.6k](/packages/doctrine-dbal)[jdorn/sql-formatter

a PHP SQL highlighting library

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

a PHP SQL highlighting library

1.9k166.0M85](/packages/doctrine-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.3k](/packages/illuminate-database)[automattic/php-thrift-sql

A PHP library for connecting to Hive or Impala over Thrift

11467.0k1](/packages/automattic-php-thrift-sql)[catfan/medoo

The lightweight PHP database framework to accelerate development

4.9k1.5M194](/packages/catfan-medoo)

PHPackages © 2026

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