honvid / thrift-hbase-laravel
use thrift to operator hbase for laravel.
Installs: 136
Dependents: 0
Suggesters: 0
Security: 0
Stars: 5
Watchers: 2
Forks: 4
Open Issues: 0
pkg:composer/honvid/thrift-hbase-laravel
Requires
- php: ^7.0
- apache/thrift: ^0.11.0
This package is not auto-updated.
Last update: 2025-10-06 11:31:23 UTC
README
安装|Install
composer require honvid/thrift-hbase-laravel
在项目中 config/app.php
中添加如下
'providers' => [
...
Honvid\Providers\ThriftServiceProvider::class
],
'aliases' => [
...
'Thrift' => Honvid\Facades\Thrift::class
]
最后在命令后执行
php artisan vendor:publish --provider="Honvid\Providers\ThriftServiceProvider"
在 config
目录中会生成 thrift.php
文件,修改对应配置即可。
使用|Use Example
use Thrift;
...
Thrift::getValue('table1', 'ccolumn1', 'row1');