PHPackages                             bravist/exchange - 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. bravist/exchange

ActiveLibrary

bravist/exchange
================

Chongqing Waitan Automobile &amp; Motorcycle Exchange For Weipei App

1.1.3(9y ago)197MITPHPPHP &gt;=5.5

Since Sep 6Pushed 9y ago1 watchersCompare

[ Source](https://github.com/bravist/exchange)[ Packagist](https://packagist.org/packages/bravist/exchange)[ Docs](http://www.aumoce.com/)[ RSS](/packages/bravist-exchange/feed)WikiDiscussions master Synced 2mo ago

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

Laravel 私有化扩展包：摩交所接口

> 微博：`会勇同学`

特性
--

[](#特性)

- 使用GuzzleHttp发送HTTP请求
- 利用PHP openssl扩展非对称加密算法完成数据加密传输
- 使用Composer 实现组件的下载与安装

安装
--

[](#安装)

- 通过composer，这是推荐的方式，可以使用composer.json 声明依赖，或者运行下面的命令。SDK 包已经放到这里 [`bravist/exchange`](https://github.com/bravist/exchange)

```
$ composer require bravist/exchange -vvv
```

配置
--

[](#配置)

### Laravel 应用

[](#laravel-应用)

1. 注册 `ServiceProvider`:

```
Bravist\Exchange\ExchangeProvider::class,
```

2. 创建配置文件：

```
php artisan vendor:publish
```

3. 请修改应用根目录下的 `config/exchange.php` 中对应的项即可；
4. 在文件中注入依赖，完成接口请求

```
use Bravist\Exchange\Authorize;

class Aname
{
    protected $exchange;

    public function __construct(Authorize $exchange)
    {
        $this->exchange = $exchange;
    }

    /**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
    public function index()
    {
        $this->exchange->phone = 186****1103;
        $res = $this->exchange->http(config('exchange.get_member'), ['Phone' => 186****1103]);
        var_dump($res);
    }
}
```

5. 响应结果如下:

```
{#484
  +"Data": "{"UserID":"2c90855154e083f30154e08a59730003","RealName":"赵兵","Phone":"18628951103","AccountBalance":0.0,"DebitCard":"6217234402000064089","DepositBank":"工商银行","CardholderName":"赵兵","PayPassword":null}"
  +"Code": 200
  +"Message": null
  +"Description": null
  +"Success": true
  +"Sign": "JGfyvwNGG4FyI1MUPjv4q2pj/ZzA4TuLOOrMhrKmSbCTFp65wKl2Fp8jIAfdR0S11NFFM+XJuHAHj5PxlB80BpLBVr4gETsWlwFpxZSqXESVE0jyQ5wgip8JnA/f0fUAjV247p2tPtzAAHbTrwM9ldjsoLtLbnfBBHuXfQkWbj8Di+lxMK5tNzBcyugvqSfT43qDip3FQBsAQInmIlQ42vZiJP1C89gFDsyyx5jkUl0yNP2uyvQUQbhcluHOTHw4R0PLJKrvhi4VwuW8+RKgT3+5UVTeBAc1L7cFe3FOHk00bxzNZ71C1LWIdpW4nlKNvPE6pJzEJSltNmhfcvk1Pw=="
}
```

License
-------

[](#license)

MIT

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity66

Established project with proven stability

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

Total

15

Last Release

3493d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/195282e1beeb9475b56cbf1b7fcb9c28f9e3232834181d3e95b3f150e3be4b5a?d=identicon)[bravist](/maintainers/bravist)

---

Tags

exchangebravistweipeiappweipei

### Embed Badge

![Health badge](/badges/bravist-exchange/health.svg)

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

###  Alternatives

[fadion/fixerio

Wrapper for Fixer.io

49337.7k](/packages/fadion-fixerio)[chowjiawei/laravel-help-plugin

Integrating useful auxiliary functions into laravel,Assistant tools based on laravel.

671.6k](/packages/chowjiawei-laravel-help-plugin)[mocking-magician/coinbase-pro-sdk

Library for coinbase pro API calls

223.2k](/packages/mocking-magician-coinbase-pro-sdk)

PHPackages © 2026

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