PHPackages                             uunmask2000\_kk/coin\_currency - 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. uunmask2000\_kk/coin\_currency

ActiveLibrary[API Development](/categories/api)

uunmask2000\_kk/coin\_currency
==============================

提供法定(虛擬)貨幣api

3.0.1(1y ago)010LGPL-3.0PHPPHP ^7.3||^8.2

Since Jun 4Pushed 1y ago1 watchersCompare

[ Source](https://github.com/uunmask2000/coin_currency)[ Packagist](https://packagist.org/packages/uunmask2000_kk/coin_currency)[ RSS](/packages/uunmask2000-kk-coin-currency/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

coin\_currency
==============

[](#coin_currency)

API doc
-------

[](#api-doc)

[api-doc](https://apidoc.jim-kk.com/)

目前支持3家
------

[](#目前支持3家)

- CoinMarketCap
- CryptoCompare
- Freecurrencyrates

簡單範例
----

[](#簡單範例)

[TWD-USD](https://api.jim-kk.com/api/currency/converter?from=TWD&to=USD)

```
https://api.jim-kk.com/api/currency/converter?from={}&to={}
{} = 法定/虛擬 英文code (可以不區分大小寫)

```

例子
--

[](#例子)

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

use \uunmask2000_kk\CoinCurrency\CoinCurrency;

$class = new CoinCurrency();
print_r($class->CryptoCompare->call_A2B());
print_r($class->Freecurrencyrates->call_A2B());
EX :
print_r($CoinCurrency->CryptoCompare->call_A2B('usdt', 'hkd'));
print_r($CoinCurrency->Freecurrencyrates->call_A2B('usdt', 'hkd'));

Array
(
    [A_B] => usdt-hkd
    [rate] => 7.627
    [original] => 7.627
)
Array
(
    [rate] => 7.7969157151701
    [original] => 7.7969157151701
    [A_B] => usdt-hkd
)

```

測試
--

[](#測試)

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

use uunmask2000_kk\CoinCurrency\CoinCurrency;

$coinCurrency = new CoinCurrency();
// var_dump($coinCurrency);
foreach ($coinCurrency as $key => $value) {
    // $tmp = $key->call_A2B();
    // print_r($key);
    print_r($coinCurrency->$key->call_A2B());
    print_r($coinCurrency->$key->historyDays());
}

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

708d ago

PHP version history (2 changes)3.0PHP &gt;=7.2

3.0.1PHP ^7.3||^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/29949f01971e3c386c6583e3382aa614197a3af31f37e47a1d98da7468182536?d=identicon)[uunmask2000](/maintainers/uunmask2000)

---

Top Contributors

[![uunmask2000](https://avatars.githubusercontent.com/u/14743902?v=4)](https://github.com/uunmask2000 "uunmask2000 (28 commits)")

---

Tags

exchange-rateexchange-rate-api

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/uunmask2000-kk-coin-currency/health.svg)

```
[![Health](https://phpackages.com/badges/uunmask2000-kk-coin-currency/health.svg)](https://phpackages.com/packages/uunmask2000-kk-coin-currency)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[jovix/dataforseo-clientv3

PHP Client for DataForSeo

22103.6k](/packages/jovix-dataforseo-clientv3)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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