Looking to hire Laravel developers? Try LaraJobs

thrift-hbase-laravel maintained by honvid

Description
use thrift to operator hbase for laravel.
Author
Last update
2018/08/07 12:27 (dev-master)
License
Links
Downloads
136

Comments
comments powered by Disqus

thrift-hbase-laravel

安装|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');