Download the PHP package sy-records/thrift2-hbase without Composer

On this page you can find all versions of the php package sy-records/thrift2-hbase. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package thrift2-hbase

thrift2-hbase

thrift2-hbase component for Hyperf.

Latest Stable Version Total Downloads License PHP Version Require

此 repo 为使用阿里云云数据库 Hbase 性能增强版,HBase 增强版使用的 Thrift 接口定义是 HBase 的 thrift2

安装

在 Hyperf 中使用

配置文件

配置文件位于 config/autoload/hbase.php,如配置文件不存在可通过执行

命令创建默认配置,配置文件内容如下:

添加配置信息

在项目根目录.env文件中添加相关配置信息

参数说明:

配置 类型 默认值 备注
ALIHBASE_HOST string localhost 连接信息中的“非 JAVA 语言 Thrift2 访问地址”访问地址部分(注意专有网络地址和外网地址的区别)
ALIHBASE_PORT int 9190 PHP 操作端口
ALIHBASE_KEYID string root 用户名
ALIHBASE_SIGNATURE string root 密码

代码提示

在 PhpStorm 中直接操作是没有代码提示的,可添加@var使得编辑器增加代码提示,如下所示

这样操作$client$hbase时,编辑器就会给出对应的代码提示。

在其他框架中使用

配置文件

在对应的配置文件中添加如下配置信息,参数说明见上文

使用

Contributors


zhouhua

💻

沈唁

💻 📖

hejunrex

💻

starfalling

💻

扩展服务

此仓库是作为操作Hbase基础库发布的,另有完整的Hbase+Solr协程支持组件,操作更加便捷。


All versions of thrift2-hbase with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package sy-records/thrift2-hbase contains the following files

Loading the files please wait ....