PHPackages                             javareact/cq-api - 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. javareact/cq-api

ActiveLibrary[API Development](/categories/api)

javareact/cq-api
================

橙券PHP-SDK,ChengQuan OpenApi SDK

2.0.1(5y ago)5242MITPHPPHP &gt;=7.1CI failing

Since Feb 12Pushed 5y ago1 watchersCompare

[ Source](https://github.com/javareact/chengquan-openapi)[ Packagist](https://packagist.org/packages/javareact/cq-api)[ RSS](/packages/javareact-cq-api/feed)WikiDiscussions master Synced today

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

橙券-权益营销方案服务商
============

[](#橙券-权益营销方案服务商)

### ChengQuan-openapi

[](#chengquan-openapi)

### PHP-SDK

[](#php-sdk)

1. Require with Composer
========================

[](#1-require-with-composer)

```
composer require javareact/cq-api

```

2. Example
==========

[](#2-example)

```
use GuzzleHttp\Client;
use JavaReact\CQApi\CQBalance;

$goods = new CQBalance("appKey", "secret", function() {
    return new Client([
        "base_uri" => \JavaReact\CQApi\Client::DEFAULT_GATEWAY,//可省略
    ]);
});

$response = $balance->balanceGet("productid");
if($response->getStatusCode() == 200) {
    $json = $response->json();
    $result = $response->result();
}

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

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 ~122 days

Total

3

Last Release

2035d ago

Major Versions

1.0.9 → 2.0.12020-10-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/0f0f5bc80192075897ba2b1b90875e85358dfe3cb8706ed8318c5f566515c6d5?d=identicon)[JavaReact](/maintainers/JavaReact)

---

Tags

sdkopenapiChengQuan

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/javareact-cq-api/health.svg)

```
[![Health](https://phpackages.com/badges/javareact-cq-api/health.svg)](https://phpackages.com/packages/javareact-cq-api)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)

PHPackages © 2026

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