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(2y ago)010LGPL-3.0PHPPHP ^7.3||^8.2

Since Jun 4Pushed 2y 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 today

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

24

—

LowBetter than 31% of packages

Maintenance20

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

761d ago

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

3.0.1PHP ^7.3||^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14743902?v=4)[康康](/maintainers/uunmask2000)[@uunmask2000](https://github.com/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

[laravel/framework

The Laravel Framework.

34.8k543.8M20.1k](/packages/laravel-framework)[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M421](/packages/drupal-core-recommended)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)

PHPackages © 2026

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