承接 thesis/grpc-server-reflection 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

thesis/grpc-server-reflection

最新稳定版本:0.1.1

Composer 安装命令:

composer require thesis/grpc-server-reflection

包简介

gRPC server reflection protocol implementation.

README 文档

README

gRPC server reflection protocol implementation

Installation

composer require thesis/grpc-server-reflection

Usage

Reflection v1 only (registerV1)

Use this when you only need reflection v1.

<?php

declare(strict_types=1);

use Thesis\Grpc\Server;
use Thesis\Grpc\Server\Reflection;

$server = new Server\Builder()
    ->withServices(/* your service registries */)
    ->build();

Reflection\registerV1($server);

$server->start();

Reflection v1 + v1alpha (registerV1Alpha)

Use this when you need both reflection endpoints: v1 and v1alpha (deprecated).

<?php

declare(strict_types=1);

use Thesis\Grpc\Server;
use Thesis\Grpc\Server\Reflection;

$server = new Server\Builder()
    ->withServices(/* your service registries */)
    ->build();

Reflection\registerV1Alpha($server);

$server->start();

Why

Server Reflection lets gRPC clients discover services and schemas at runtime, without local .proto files.

This is useful for:

  • ad-hoc debugging and smoke checks when proto files are not locally available;
  • interactive API exploration;
  • fast integration checks in CI and local development.

With reflection enabled you can use tools like grpcurl and grpcui.

grpcurl

# List all services
grpcurl -plaintext localhost:50051 list

# Show methods for a service
grpcurl -plaintext localhost:50051 describe thesis.echos.api.v1.EchoService

grpcui

grpcui -plaintext localhost:50051

Then open the URL printed by grpcui in your browser.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固