承接 chobie/treasuredata-api-client 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

chobie/treasuredata-api-client

最新稳定版本:20150128

Composer 安装命令:

composer require chobie/treasuredata-api-client

包简介

TreasureData REST API client.

README 文档

README

Build Status

MOTIVATION

There are several implementation but PHP does not have ROBUST Treasure Data REST API client. This Treasure Data API Client aims robust and provide useful features.

USAGE

composer.json

{
  "require": {
      "chobie/treasuredata-api-client": "dev-master"
   }
}

Example

<?php
require dirname(__DIR__) . DIRECTORY_SEPARATOR . "vendor" . DIRECTORY_SEPARATOR . "autoload.php";

$api = TreasureData_APIFactory::createClient();

$result = $api->getDatabaseList();
var_dump($result->getResult());

KEEP IN MIND

Unfortunately, PHP is really poor about processing BIG Data as some reasons.

  • PHP function is very slow. (enough to process web services. but big data requires really many function call)

  • array implementation (HashTable) does not scale. php will re-alloc memories and iterating Big HashTable is really slow.

  • PHP curl implementation returns result as string directly. this will take big memory if job result is large.

    • So, This lib use StreamSocketDriver as default driver. you can also use CurlDriver. but I don't recommend it as above problem.

So. I strongly recommend You process small result (at most under 1 million records) with this lib or downloading job result only.

Anyway, have fun with Treasure Data API and PHP!

LICENSE

Apache License

统计信息

  • 总下载量: 13.83k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: Apache
  • 更新时间: 2013-09-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固