PHPackages                             sting\_bo/php-gome - 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. sting\_bo/php-gome

ActiveLibrary

sting\_bo/php-gome
==================

Calling Match Engine Of Go Service

5211PHP

Since Feb 16Pushed 5y ago1 watchersCompare

[ Source](https://github.com/stingbo/php-gome)[ Packagist](https://packagist.org/packages/sting_bo/php-gome)[ RSS](/packages/sting-bo-php-gome/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP 使用 protobuf 数据结构，调用 **[gome](https://github.com/stingbo/gome)** 撮合引擎服务
--------------------------------------------------------------------------

[](#php-使用-protobuf-数据结构调用-gome-撮合引擎服务)

- 高性能撮合引擎微服务 **[gome](https://github.com/stingbo/gome)** PHP调用客户端

依赖
--

[](#依赖)

- `pecl install protobuf-{VERSION版本号}`
- `pecl install grpc`

基本使用
----

[](#基本使用)

- `composer require sting_bo/php-gome`
- 下单与撤单，详见 test/TestCase.php

```
$config = [
    'host' => '172.22.0.4', // gRPC 地址
    'port' => 8088, // gRPC 端口
    'opts' => [
        'credentials' => \Grpc\ChannelCredentials::createInsecure(),
    ],
    'channel' => [],
];

$app = Factory::mengine($config);
$response = $app->gome->doOrder(\Gome\Order\OrderRequest $request);
$response = $app->gome->deleteOrder(\Gome\Order\OrderRequest $request);
```

- 获取交易对深度，详见 test/TestCase.php

```
$app = Factory::mengine($config);
$response = $app->pool->getDepth(\Gome\Pool\DepthRequest $request);
```

总结
--

[](#总结)

- 生成 php 定义文件：`protoc --php_out=. *.proto`，项目里已生成，不用重复生成
- 有需求欢迎提 issue :)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

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.

### Community

Maintainers

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

---

Tags

gomegrpcphpprotobufprotobuf3

### Embed Badge

![Health badge](/badges/sting-bo-php-gome/health.svg)

```
[![Health](https://phpackages.com/badges/sting-bo-php-gome/health.svg)](https://phpackages.com/packages/sting-bo-php-gome)
```

PHPackages © 2026

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