PHPackages                             stk2k/phitflyer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. stk2k/phitflyer

AbandonedArchivedLibrary[API Development](/categories/api)

stk2k/phitflyer
===============

PHP bitflyer API client library

0.5.0(5y ago)127465MITPHPPHP &gt;=7.1

Since Jul 19Pushed 4y ago1 watchersCompare

[ Source](https://github.com/stk2k/phitflyer)[ Packagist](https://packagist.org/packages/stk2k/phitflyer)[ Docs](https://github.com/stk2k/pitflyer)[ RSS](/packages/stk2k-phitflyer/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (4)Versions (16)Used By (0)

phitFlyer, bitFlyer API PHP client
==================================

[](#phitflyer-bitflyer-api-php-client)

Description
-----------

[](#description)

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

Feature
-------

[](#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
----

[](#demo)

### simple and fastest sample:

[](#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:

[](#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:

[](#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:

[](#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:

[](#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
-----

[](#usage)

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

Requirement
-----------

[](#requirement)

PHP 5.5 or later php-mbstring php-xml

Installing phitFlyer
--------------------

[](#installing-phitflyer)

The recommended way to install phitFlyer is through [Composer](http://getcomposer.org).

```
composer require stk2k/phitflyer
```

After installing, you need to require Composer's autoloader:

```
require 'vendor/autoload.php';
```

License
-------

[](#license)

[MIT](https://github.com/stk2k/phitflyer/blob/master/LICENSE)

Author
------

[](#author)

[stk2k](https://github.com/stk2k)

Disclaimer
----------

[](#disclaimer)

This software is no warranty.

We are not responsible for any results caused by the use of this software.

Please use the responsibility of the your self.

Donation
--------

[](#donation)

-Bitcoin: 3HCw9pp6dSq1xU9iPoPKVFyVbM8iBrrinn

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~96 days

Recently: every ~260 days

Total

15

Last Release

1872d ago

PHP version history (3 changes)0.1.0PHP &gt;=5.3.0

0.1.1PHP &gt;=5.5.0

0.5.0PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/955f3d564811dc5e1212c1a7a66bc4eb7e11ac166cc38600f244dc25f97d3ef4?d=identicon)[stk2k](/maintainers/stk2k)

---

Top Contributors

[![stk2k](https://avatars.githubusercontent.com/u/985640?v=4)](https://github.com/stk2k "stk2k (23 commits)")[![sakurashiki](https://avatars.githubusercontent.com/u/10524945?v=4)](https://github.com/sakurashiki "sakurashiki (3 commits)")[![imasaka3](https://avatars.githubusercontent.com/u/7755340?v=4)](https://github.com/imasaka3 "imasaka3 (1 commits)")

---

Tags

phplibrarybitflyerbitflyer apibitflyer lightning api

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/stk2k-phitflyer/health.svg)

```
[![Health](https://phpackages.com/badges/stk2k-phitflyer/health.svg)](https://phpackages.com/packages/stk2k-phitflyer)
```

###  Alternatives

[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[maxbeckers/amazon-alexa-php

Php library for amazon echo (alexa) skill development.

11554.0k2](/packages/maxbeckers-amazon-alexa-php)[ontraport/sdk-php

ONTRAPORT PHP Library

19360.5k2](/packages/ontraport-sdk-php)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
