PHPackages                             toklove/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. [API Development](/categories/api)
4. /
5. toklove/php-gome

ActiveLibrary[API Development](/categories/api)

toklove/php-gome
================

Calling Match Engine Of Go Service

01PHP

Since Jul 29Pushed 2y ago1 watchersCompare

[ Source](https://github.com/Toklove/php-gome)[ Packagist](https://packagist.org/packages/toklove/php-gome)[ RSS](/packages/toklove-php-gome/feed)WikiDiscussions main Synced 1mo 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 :)
- 修改部分内容以支持PHP8 (使用项目基于8.1.21)

###  Health Score

12

—

LowBetter than 0% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity1

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity21

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/7407183d0aaa2cb57a716f8c82a7146a1b37a3ec4efac5ff4bc157cf44e53d77?d=identicon)[Toklove](/maintainers/Toklove)

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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