PHPackages                             xutl/gateio - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. xutl/gateio

ActiveLibrary[HTTP &amp; Networking](/categories/http)

xutl/gateio
===========

The package for gate.io

1.0.0(8y ago)012MITPHPPHP &gt;=5.5.0

Since Nov 29Pushed 8y agoCompare

[ Source](https://github.com/xutl/gateio)[ Packagist](https://packagist.org/packages/xutl/gateio)[ RSS](/packages/xutl-gateio/feed)WikiDiscussions master Synced 2d ago

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

gateio-guzzle
=============

[](#gateio-guzzle)

For license information check the [LICENSE](LICENSE)-file.

[![Latest Stable Version](https://camo.githubusercontent.com/56fdb1f85b577913e8facadfa5a755af48ac02b98cce07d68accd2b23dc6d42f/68747470733a2f2f706f7365722e707567782e6f72672f7875746c2f67617465696f2f762f737461626c652e706e67)](https://packagist.org/packages/xutl/gateio)[![Total Downloads](https://camo.githubusercontent.com/ef26cbcd1770bb4b101816d15ab8b90be8edc2694b9fe11ad9e8e21a9ff5b5aa/68747470733a2f2f706f7365722e707567782e6f72672f7875746c2f67617465696f2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/xutl/gateio)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist xutl/gateio

```

or add

```
"xutl/gateio": "~1.0"

```

to the require section of your composer.json.

使用
--

[](#使用)

```
use GuzzleHttp\Client;
use GuzzleHttp\HandlerStack;
use xutl\gateio\Gateio;

$stack = HandlerStack::create();

//跟guzzlephp普通用法唯一的区别就是这里吧中间件加载进来，他会自动帮你签名重新包装请求参数。
$middleware = new Gateio([
    'accessKey' => '123456',
    'accessSecret' => '654321',
]);
$stack->push($middleware);

//这里设置 网关地址，数组参数请参见 https://gate.io/api2
$client = new Client([
    'base_uri' => 'https://api.gate.io/api2/1',
    'handler' => $stack,
]);

$res = $client->get('private/cancelOrders', [
    'query' => [
        'aaa' => 'bbb',
    ]
]);

$res = $client->post('private/cancelOrders', [
    'form_params' => [
        'orders_json' => 'adafasdf'
     ]
]);

print_r($res->getBody()->getContents());

```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

Unknown

Total

1

Last Release

3088d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/87b658aa9d49e0c80cfc609fa2b9dc6d615672b1d895f421f751945a0e394087?d=identicon)[larvacent](/maintainers/larvacent)

---

Top Contributors

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

---

Tags

Guzzleguzzlehttpgategate.iogate.io sdk

### Embed Badge

![Health badge](/badges/xutl-gateio/health.svg)

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

###  Alternatives

[kevinrob/guzzle-cache-middleware

A HTTP/1.1 Cache for Guzzle 6. It's a simple Middleware to be added in the HandlerStack. (RFC 7234)

43117.4M104](/packages/kevinrob-guzzle-cache-middleware)[graham-campbell/guzzle-factory

Provides A Simple Guzzle Factory With Good Defaults

916.4M49](/packages/graham-campbell-guzzle-factory)[graze/guzzle-jsonrpc

JSON-RPC 2.0 client for Guzzle

981.2M24](/packages/graze-guzzle-jsonrpc)

PHPackages © 2026

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