PHPackages                             reaway/boc-cny-quote - 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. reaway/boc-cny-quote

ActiveLibrary

reaway/boc-cny-quote
====================

Bank of China CNY quote

v1.0.1(1mo ago)03↓100%Apache-2.0PHPPHP &gt;=8.1

Since Mar 17Pushed 1mo agoCompare

[ Source](https://github.com/reaway/boc-cny-quote)[ Packagist](https://packagist.org/packages/reaway/boc-cny-quote)[ Docs](https://github.com/reaway/boc-cny-quote)[ RSS](/packages/reaway-boc-cny-quote/feed)WikiDiscussions main Synced 1mo ago

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

BocCnyQuote
===========

[](#boccnyquote)

安装
--

[](#安装)

```
composer require reaway/boc-cny-quote
```

使用门面（Facade）
------------

[](#使用门面facade)

```
use BocCnyQuote\Facade\CnyQuoteFacade;
use Think\Component\Config\Facade\ConfigFacade;

require dirname(__DIR__) . '/vendor/autoload.php';

$config = [
    'default' => 'desktop', // 默认驱动
    'sources' => [
        'juhe' => [
            'key' => '666666', // API访问密钥
        ],
    ],
];
ConfigFacade::set($config, 'boc_cny_quote');

$quotes = CnyQuoteFacade::getQuotes();
var_dump($quotes);
```

使用
--

[](#使用)

```
use BocCnyQuote\CnyQuote;

require dirname(__DIR__) . '/vendor/autoload.php';

$config = [
    'default' => 'desktop', // 默认驱动
    'sources' => [
        'juhe' => [
            'key' => '888888', // API访问密钥
        ],
    ],
];

$cnyQuote = new CnyQuote($config);
$quotes = $cnyQuote->getQuotes();
var_dump($quotes);
```

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance89

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

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

56d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d342ebe348631bdfbe41ebcd414f0b5fa2334027d413e3543afb301f3503a13f?d=identicon)[reaway](/maintainers/reaway)

---

Top Contributors

[![reaway](https://avatars.githubusercontent.com/u/60423559?v=4)](https://github.com/reaway "reaway (1 commits)")

### Embed Badge

![Health badge](/badges/reaway-boc-cny-quote/health.svg)

```
[![Health](https://phpackages.com/badges/reaway-boc-cny-quote/health.svg)](https://phpackages.com/packages/reaway-boc-cny-quote)
```

PHPackages © 2026

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