2017 © Pedro Peláez
 

library treasuredata-api-client

TreasureData REST API client.

image

chobie/treasuredata-api-client

TreasureData REST API client.

  • Monday, March 9, 2015
  • by chobie
  • Repository
  • 2 Watchers
  • 2 Stars
  • 8,648 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Treasure Data API Client

Build Status, (*1)

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., (*2)

USAGE

composer.json, (*3)

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

Example, (*4)

<?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., (*5)

  • 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., (*6)

    • 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., (*7)

Anyway, have fun with Treasure Data API and PHP!, (*8)

LICENSE

Apache License, (*9)

The Versions

09/03 2015

dev-dictionary-support

dev-dictionary-support

TreasureData REST API client.

  Sources   Download

Apache

The Requires

  • php >=5.2.4

 

api td treasuredata

28/01 2015

dev-master

9999999-dev

TreasureData REST API client.

  Sources   Download

Apache

The Requires

  • php >=5.2.4

 

api td treasuredata

28/01 2015

20150128

20150128

TreasureData REST API client.

  Sources   Download

Apache

The Requires

  • php >=5.2.4

 

api td treasuredata