PHPackages                             semir/laravel2impala - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. semir/laravel2impala

ActiveLibrary[HTTP &amp; Networking](/categories/http)

semir/laravel2impala
====================

A PHP extension library that can directly connect to Impala/Hive.

1.1(5y ago)325MITPHP

Since Jun 26Pushed 5y ago1 watchersCompare

[ Source](https://github.com/shironghui/laravel2impala)[ Packagist](https://packagist.org/packages/semir/laravel2impala)[ RSS](/packages/semir-laravel2impala/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (3)Used By (0)

laravel2impala
==============

[](#laravel2impala)

A PHP extension library that can directly connect to Impala.
------------------------------------------------------------

[](#a-php-extension-library-that-can-directly-connect-to-impala)

一、环境安装
======

[](#一环境安装)

1、官网下载.tar.gz安装包，地址：

2、解压、编译、安装：

./configure ./configure --without-java (不需要支持的语言使用参数--without-xxx)

make &amp;&amp; make install

3、进入加压后的目录，创建结构和接口定义文件server.thrift:

```
struct message {
  i32 seqId,
  string content
}
service serDemo {
  void put(message msg)
}

```

执行命令：thrift -gen php server.thrift 生成gen-php说明安装成功。

二、安装laravel依赖包
==============

[](#二安装laravel依赖包)

1、非常简单，项目根目录执行命令：

composer require semir/laravel2impala:1.1

参考地址：

提示success后，查看vender/目录下是否有semir/laravel2impala/src目录且不为空；

2、修改config/app.php

providers添加Odbc\\Impala\\ImpalaServiceProvider::class

3、.env文件添加配置项：

IMPALA\_HOST=x.x.x.x

IMPALA\_PORT=21000

至此，恭喜你！安装完毕。

三、Demo
======

[](#三demo)

```
use App\Http\Proxy\ImpalaProxy;
$sql = "show tables";
// $keys 参数可选传，如果不传则返回纯数据（没有key只有value）；如果传值，需要与select后的属性相对应
$keys = [];
// 返回数组 只有value
$result1 = ImpalaProxy::getInstance()->execute($sql);
// 返回数组 key=>value 形式
$result2 = ImpalaProxy::getInstance()->execute($sql, $keys);
print_r($result1);
print_r($result2);
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

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.

###  Release Activity

Cadence

Every ~17 days

Total

2

Last Release

2182d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3852344?v=4)[Tris](/maintainers/shironghui)[@shironghui](https://github.com/shironghui)

---

Top Contributors

[![shironghui](https://avatars.githubusercontent.com/u/3852344?v=4)](https://github.com/shironghui "shironghui (5 commits)")

### Embed Badge

![Health badge](/badges/semir-laravel2impala/health.svg)

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M7.0k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M92](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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