2017 © Pedro Peláez
 

library phitflyer

PHP bitflyer API client library

image

stk2k/phitflyer

PHP bitflyer API client library

  • Tuesday, May 22, 2018
  • by stk2k
  • Repository
  • 3 Watchers
  • 12 Stars
  • 563 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 15 Versions
  • 5 % Grown

The README.md

phitFlyer, bitFlyer API PHP client

Description

phitFlyer is a PHP library which provides calling bitFLyer-API. It provides multiple access methods, such as array, class., (*1)

Feature

  • simple interface
  • return values are result of json decoding(array/object), but it also has object interface by using decorator class.
  • bundles benchmark class which can be used alternatively.

Demo

simple and fastest sample:

use Stk2k\PhitFlyer\PhitFlyerClient;

$client = new PhitFlyerClient();

$markets = $client->getMarkets();

foreach($markets as $idx => $market){
    echo $idx . '.' . PHP_EOL;
    echo 'product_code:' . $market->product_code . PHP_EOL;
    echo 'alias:' . (isset($market['alias']) ? $market['alias'] : '') . PHP_EOL;
}

objective access sample:

use Stk2k\PhitFlyer\PhitFlyerClient;
use Stk2k\PhitFlyer\PhitFlyerObjectClient;

$client = new PhitFlyerObjectClient(new PhitFlyerClient());

$markets = $client->getMarkets();

foreach($markets as $idx => $market){
    echo $idx . '.' . PHP_EOL;
    echo 'product_code:' . $market->getProductCode() . PHP_EOL;
    echo 'alias:' . $market->getAlias() . PHP_EOL;
}

benchmark sample:

use Stk2k\PhitFlyer\PhitFlyerClient;
use Stk2k\PhitFlyer\PhitFlyerBenchmarkClient;

$client = new PhitFlyerBenchmarkClient(
            new PhitFlyerClient(), 
            function ($m, $e) use(&$method, &$elapsed){
                 echo "[$m]finished in $e sec" . PHP_EOL;
             }
        );

$client->getMarkets();

logger client sample:

use Stk2k\PhitFlyer\PhitFlyerClient;
use Stk2k\PhitFlyer\PhitFlyerLoggerClient;

$client = new PhitFlyerLoggerClient(
    new PhitFlyerClient(),
    new YourLogger()    // YourLogger: Psr-3 compliant logger
);
$client->getNetDriver()->setVerbose(true);      // ouput detail log

using different net driver sample:

use Stk2k\PhitFlyer\PhitFlyerClient;
use Stk2k\NetDriver\NetDriver\Php\PhpNetDriver;

$client = new PhitFlyerClient();
$client->setNetDriver(new PhpNetDriver());      // use file_get_contents to call web api instead of cURL function

$markets = $client->getMarkets();

Usage

  1. create PhitFlyerClient object.
  2. call API method.
  3. PhitFlyer returns array or object(stdClass).

Requirement

PHP 5.5 or later php-mbstring php-xml, (*2)

Installing phitFlyer

The recommended way to install phitFlyer is through Composer., (*3)

composer require stk2k/phitflyer

After installing, you need to require Composer's autoloader:, (*4)

require 'vendor/autoload.php';

License

MIT, (*5)

Author

stk2k, (*6)

Disclaimer

This software is no warranty., (*7)

We are not responsible for any results caused by the use of this software., (*8)

Please use the responsibility of the your self., (*9)

Donation

-Bitcoin: 3HCw9pp6dSq1xU9iPoPKVFyVbM8iBrrinn, (*10)

The Versions

22/05 2018

dev-master

9999999-dev https://github.com/stk2k/pitflyer

PHP bitflyer API client library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Katsuki Shuto

php library bitflyer bitflyer api bitflyer lightning api

22/05 2018

0.4.5

0.4.5.0 https://github.com/stk2k/pitflyer

PHP bitflyer API client library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Katsuki Shuto

php library bitflyer bitflyer api bitflyer lightning api

22/05 2018

0.4.4

0.4.4.0 https://github.com/stk2k/pitflyer

PHP bitflyer API client library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Katsuki Shuto

php library bitflyer bitflyer api bitflyer lightning api

22/05 2018

0.4.3

0.4.3.0 https://github.com/stk2k/pitflyer

PHP bitflyer API client library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Katsuki Shuto

php library bitflyer bitflyer api bitflyer lightning api

21/05 2018

0.4.2

0.4.2.0 https://github.com/stk2k/pitflyer

PHP bitflyer API client library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Katsuki Shuto

php library bitflyer bitflyer api bitflyer lightning api

21/05 2018

0.4.1

0.4.1.0 https://github.com/stk2k/pitflyer

PHP bitflyer API client library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Katsuki Shuto

php library bitflyer bitflyer api bitflyer lightning api

21/05 2018

0.4.0

0.4.0.0 https://github.com/stk2k/pitflyer

PHP bitflyer API client library

  Sources   Download

MIT

The Requires

 

The Development Requires

by Katsuki Shuto

php library bitflyer bitflyer api bitflyer lightning api

08/05 2018

0.3.1

0.3.1.0 https://github.com/stk2k/pitflyer

PHP bitflyer API client library

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

by Katsuki Shuto

php library bitflyer bitflyer api bitflyer lightning api

08/05 2018

0.3.0

0.3.0.0 https://github.com/stk2k/pitflyer

PHP bitflyer API client library

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

by Katsuki Shuto

php library bitflyer bitflyer api bitflyer lightning api

21/02 2018

0.2.2

0.2.2.0 https://github.com/stk2k/pitflyer

PHP bitflyer API client library

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

by Katsuki Shuto

php library bitflyer bitflyer api bitflyer lightning api

19/02 2018

0.2.1

0.2.1.0 https://github.com/stk2k/pitflyer

PHP bitflyer API client library

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

by Katsuki Shuto

php library bitflyer bitflyer api bitflyer lightning api

19/02 2018

0.2.0

0.2.0.0 https://github.com/stk2k/pitflyer

PHP bitflyer API client library

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

by Katsuki Shuto

php library bitflyer bitflyer api bitflyer lightning api

04/10 2017

0.1.2

0.1.2.0 https://github.com/stk2k/pitflyer

PHP bitflyer API client library

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

by Katsuki Shuto

php library bitflyer bitflyer api bitflyer lightning api

19/07 2017

0.1.1

0.1.1.0 https://github.com/stk2k/pitflyer

PHP bitflyer API client library

  Sources   Download

MIT

The Requires

  • php >=5.5.0

 

The Development Requires

by Katsuki Shuto

php library bitflyer bitflyer api bitflyer lightning api

19/07 2017

0.1.0

0.1.0.0 https://github.com/stk2k/pitflyer

PHP bitflyer API client library

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

by Katsuki Shuto

php library bitflyer bitflyer api bitflyer lightning api